Skip to content

Instantly share code, notes, and snippets.

@sanusart
Created April 15, 2015 14:51
Show Gist options
  • Save sanusart/1a8baa2e61c4382279d6 to your computer and use it in GitHub Desktop.
Save sanusart/1a8baa2e61c4382279d6 to your computer and use it in GitHub Desktop.
Test mail server with telnet #mail #telnet
telnet mail.server.com 25
EHLO mail.server.com
AUTH LOGIN
<base64-encoded-username>
<base64-encoded-password>
MAIL FROM: <user@server.com>
RCPT TO: <user@server.com>
DATA
From: <user@server.com>
To: <user@server.com>
Subject: Hello dear user
This is the mail body here.
.
# Dot ends the session and put's the mail into mail que
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment