Skip to content

Instantly share code, notes, and snippets.

@matteodelabre
Last active October 27, 2015 11:19
Show Gist options
  • Save matteodelabre/e2b615e99029ec391b30 to your computer and use it in GitHub Desktop.
Save matteodelabre/e2b615e99029ec391b30 to your computer and use it in GitHub Desktop.
Exchange between email client and email server using SMTP
-- Connecté à exemple.fr:25
S: 220 exemple.fr ESMTP Postfix (Debian/GNU)
C: HELO exemple.fr
S: 250-exemple.fr
C: MAIL FROM: moi@exemple.fr
S: 250 2.1.0 Ok
C: RCPT TO: jean.dupont@test.net
S: 250 2.1.5 Ok
C: DATA
S: 354 End data with <CR><LF>.<CR><LF>
C: Subject: Photos de vacances
C: Lorem ipsum dolor sit amet
C: .
S: 250 2.0.0 Ok: queued as 5FE5C3CDF5
C: quit
S: 221 2.0.0 Bye
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment