Skip to content

Instantly share code, notes, and snippets.

@ljesparis
Created December 9, 2017 01:08
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save ljesparis/b484f7c681e05ba512a4b6cfe214b980 to your computer and use it in GitHub Desktop.
Save ljesparis/b484f7c681e05ba512a4b6cfe214b980 to your computer and use it in GitHub Desktop.
basic smtp commands
// protocolo SMTP simple.
// S = client
// R = server
// forward-path = correo que va a recibir el mail
// reverse-path = correo que va a enviar el mail
// S: EHLO <HOST> <CRLF>
// R: 250 OK
// S: MAIL FROM:<reverse-path> <CRLF>
// R: 250 OK
// S: RCPT TO:<forward-path> <CRLF>
// R: 250 OK
// S: RCPT TO:<forward-path> <CRLF>
// R: 550 No such user here
// S: RCPT TO:<forward-path> <CRLF>
// R: 250 OK
// S: DATA
// R: 354 Start mail input; end with <CRLF>.<CRLF>
// S: This is my message <CRLF>.<CRLF>
// R: 250 OK
// S: QUIT <CRLF>
// R: 221 Bye
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment