Created
July 17, 2016 14:45
Star
You must be signed in to star a gist
Send a RFC 5322 compliant email using telnet
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
$ telnet mail.example.org 25 | |
Trying XXX.XXX.XXX.XXX... | |
Connected to XXX.XXX.XXX.XXX. | |
Escape character is '^]'. | |
220 ********************************* | |
ehlo server.example.org | |
250-mail.example.com | |
250-PIPELINING | |
250-SIZE 20480000 | |
250-ETRN | |
250-AUTH PLAIN LOGIN | |
250-AUTH=PLAIN LOGIN | |
250-ENHANCEDSTATUSCODES | |
250-8BITMIME | |
250 DSN | |
mail from: testsmtp@example.org | |
250 2.1.0 Ok | |
rcpt to: someone@example.com | |
250 2.1.5 Ok | |
data | |
354 End data with <CR><LF>.<CR><LF> | |
from: TestSMTP <testsmtp@example.org> | |
to: someone@example.com | |
Subject: This is a test | |
This is a RFC compliant email sent using telnet. | |
Thank you! | |
. | |
250 2.0.0 Ok: queued as 9XXXXF80003 | |
quit | |
221 2.0.0 Bye | |
Connection closed by foreign host. |
I think the creation date is missing.
Without the date its already compliant
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
I think the creation date is missing.