Inviare una mail con telnet e smtp autenticato

  Telnet

COMANDO/RISPOSTA DAL SERVER
**********:~# telnet example.com:25
220 paganini32 authsmtp ESMTP server ready
HELO example.com
250 paganini32 hello [*.*.*.*], pleased to meet you
AUTH LOGIN
334 VXNlcm5hbWU6
utente base64
334 UGFzc3dvcmQ6
password base64
235 2.7.0 … authentication succeeded
MAIL FROM: info@example.com
250 2.1.0 sender ok
RCPT TO: luca@lucabartoli.it
250 2.1.5 recipient ok
DATA
354 enter mail, end with “.” on a line by itself
TEST INVIO MAIL
.

250 2.0.0 m9Mn1r01Y1QDmx6019QQNd mail accepted for delivery