由于要搭建 nagios ,先用命令测试能否发送邮件,代码如下:
[root@redhat1 objects]# echo "hello world" | /usr/local/bin/sendEmail -f nagios@localhost -t 514694700@qq.com -m "this is a test"
Jul 08 08:01:46 redhat1 sendEmail[8616]: Email was sent successfully!
虽然提示成功,但是 qq邮箱没有收到邮件,请问这是什么情况?