Skip to content

Instantly share code, notes, and snippets.

@nwjlyons
Last active November 6, 2023 21:12
Show Gist options
  • Star 4 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save nwjlyons/00c84f0f6c59f1fca5db1ecc122d7534 to your computer and use it in GitHub Desktop.
Save nwjlyons/00c84f0f6c59f1fca5db1ecc122d7534 to your computer and use it in GitHub Desktop.
Send plain and html email via telnet.
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