How to send an email through telnet with authentication

First you need to convert your username to Base64 $ echo “username” | base64 dXNlcm5hbWUK Next convert your password to Base 64 $ echo “password” | base64 cGFzc3dvcmQK Then you can connect to the server through telnet telnet 587 Trying… Connected to Escape character is ‘^]’. 220 ESMTP Postfix ehlo