Swaks
Swaks - Swiss Army Knife for SMTP
...It allows users to craft custom SMTP sessions with fine-grained control over headers, authentication, TLS, attachments, and more. swaks is commonly used by sysadmins and developers to diagnose mail delivery problems or test SMTP server configurations.