in CODING

Test SMTP from macOS Terminal

  1. telnet host-to-test 25 (connect to port 25 on mail server)
  2. HELO sending-host
  3. MAIL FROM: foo@foo.com
  4. RCPT TO: bar@bar.com
  5. DATA
  6. (enter one blank line after DATA)
  7. Subject: test
    To: to-user
    From: from-user
    (enter one blank line after From:)
    test text for email
    . (enter a single period by itself on the last line)
  8. QUIT