Thanks, I installed esmtp and created a simlink
ln -s /opt/bin/esmtp /opt/sbin/sendmail
and with this line
echo -e "From: myname@gmail.com\nSubject: this is the subject\nReply-to: myname@gmail.com\nHere goes the mail body" | sendmail -myname@ -ssmtp.gmail.com myname@gmail.com
I have got this responce-Failed to parse headers
and with this line-
/opt/bin/esmtp mymail@gmail.com -f mymail@gmail.com
I have such repy-
0 (null)
mymail@gmail.com: 0 (null)
Any idea?