Based on this guide I am trying to send a test email using telnet from linux
https://linuxconfig.org/send-an-email-using-telnet
but the connection immediately disconnects:
$ telnet smtp.gmail.com 465
Trying 108.177.126.108...
Connected to smtp.gmail.com.
Escape character is '^]'.
MAIL FROM: [email protected] closed by foreign host
How do I keep the connection open long enough to send my test mail?