Created
December 9, 2017 01:08
-
-
Save ljesparis/b484f7c681e05ba512a4b6cfe214b980 to your computer and use it in GitHub Desktop.
basic smtp commands
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// 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