formail发送邮件收件人的地址显示undisclosed-recipients问题
如题,写了个发HTML格式的邮件,收件人显示的是undisclosed-recipients,如何能显示成实际收件人邮箱test@fumobile.com
我现有代码如下:
cat test.txt | formail -I "From:robot@fumobile.com" -I "MIME-Version:1.0" -I "Content-type:text/html;charset=gb2312" -I "Subject:监控" | /usr/sbin/sendmail -oi test@fumobile.com
------解决方案--------------------
formail 只是格式化邮件格式的,不能向服务器发送的,要想发送需要用sendmail
------解决方案--------------------
晕啊
你后面还是要有sendmail ..
完整的
cat test.txt | formail -I "From:robot@fumobile.com" -I "MIME-Version:1.0" -I "Content-type:text/html;charset=gb2312" -I "Subject:监控" -I "To:test@fumobile.com" | /usr/sbin/sendmail -oi test@fumobile.com