Testing e-mail with nc

Contents

  1. Basic Test
  2. See Also

Basic Test

Please note the blank lines below are syntactically important.

nc host 25

helo example.com
mail from:<address@example.com>
rcpt to:<address@example.com>
data
Subject: whatever (and other "headers")

message content

.
quit
      

See Also

  1. http://www.yuki-onna.co.uk/email/smtp.html
  2. https://www.checktls.com/perl/TestSender.pl : Test Outbound TLS