Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Save DavidPesticcio/c4b76f4b52b6187672fc7b1aea4cc1d6 to your computer and use it in GitHub Desktop.
Save DavidPesticcio/c4b76f4b52b6187672fc7b1aea4cc1d6 to your computer and use it in GitHub Desktop.
LINUX: Send email directly to MTA with netcat
---------- mailtalk.txt ----------
helo myhost
mail from: mail.from@user.net
rcpt to: end.user@home.com
data
FROM: mail.from@user.net
TO: end.user@home.com
SUBJECT: This is a Test mail
blah blah
.
quit
---------- mailtalk.txt ----------
nc targetserver.com 25 < mailtalk.txt
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment