echo “This is the main body of the mail” | mail -s “Subject of the Email” -a “From: [email protected]” [email protected] telnet iot-parts.com 25 mailMAIL FROM:[email protected] RCPT TO:[email protected] DATA telnet localhost 143 a login “username” “password” Test using imaps port (assuming you haven’t disabled imaps port): # openssl s_client -connect imap.example.com:993 Test using imap port and… Continue reading Testing mail from commandline