开发者

why terminal mail doesn't work?

开发者 https://www.devze.com 2023-04-09 03:06 出处:网络
I\'ve just installed mail sudo apt-get install mailutils And I tried to send mail though a pipeline: echo \"message\" | mail -s \"subject\" my@email.com

I've just installed mail

sudo apt-get install mailutils

And I tried to send mail though a pipeline:

echo "message" | mail -s "subject" my@email.com

But I don't开发者_运维问答 receive any mails on my inbox.

Why doesn't work? Do I need another package?

Thanks!


I Solved! I had to edit this file and set this variables /etc/ssmtp/ssmtp.conf’:

root=username@gmail.com
mailhub=smtp.gmail.com:587
rewriteDomain=
hostname=username@gmail.com
UseSTARTTLS=YES
AuthUser=username
AuthPass=password
FromLineOverride=YES
0

精彩评论

暂无评论...
验证码 换一张
取 消