Last active
November 6, 2023 21:12
-
-
Save nwjlyons/00c84f0f6c59f1fca5db1ecc122d7534 to your computer and use it in GitHub Desktop.
Send plain and html email via 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 0.0.0.0 1025 | |
Trying 0.0.0.0... | |
Connected to 0.0.0.0. | |
Escape character is '^]'. | |
220 mailhog.example ESMTP MailHog | |
helo localhost | |
250 Hello localhost | |
mail from: <neil@example.com> | |
250 Sender neil@example.com ok | |
rcpt to: <lisa@example.com> | |
250 Recipient lisa@example.com ok | |
data | |
354 End data with <CR><LF>.<CR><LF> | |
Mime-Version: 1.0 | |
Content-Type: multipart/alternative; boundary="apples"; | |
--apples | |
Content-Type: text/plain | |
This is plain text | |
--apples | |
Content-Type: text/html | |
<h1>This is HTML</h1> | |
--apples-- | |
. |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment