无法从命令发送电子邮件

时间:2016-03-25 00:23:20

标签: linux email smtp command

我使用sendEmail(不是sendmail)和我的监视Beaglebone差不多两年了,没问题。现在我跑的时候:

sendEmail -f sender@gmail.com -t recipient@hotmail.com -m "subject" -u "body" -o tls=auto -s smtp.gmail.com:587 -xu sender -xp senderPASS

我得到了:

sendEmail[12501]: ERROR => Connection attempt to smtp.gmail.com:587 failed: IO::Socket::INET6: getaddrinfo: System error

1 个答案:

答案 0 :(得分:0)

问题解决了,只是我的Beaglebone与互联网脱节了。

相关问题