安装
yum -y install sendmail
chkconfig sendmail on
service sendmail start
测试
cat > mail.txt << EOF
From: kingwen@msn.com
To: aaaa@qq.com
Content-type: text/html;charset=UTF-8
Subject: test
<style type="text/css">
.container div{ width: 300px; margin: 5px; border-style: solid; border-width: 0px; float: left; }
.container img{ width: 300px; height: auto; }
.container p{ text-align: center; margin: 0px; font-size: 20px; font-style: italic; }
</style>
<div class="container">
<div>
<a href="https://item.taobao.com/item.htm?id=529495434637">
![活动爆款2016最新短袖A字连衣裙潮流精品个性](https://gd4.alicdn.com/bao/uploaded/i4/TB1r.e5LVXXXXXDXpXXXXXXXXXX_!!0-item_pic.jpg)
</a>
<p>活动爆款2016最新短袖A字连衣裙潮流精品个性</p>
</div>
</div>
EOF
cat mail.txt | sendmail -t
参考文档
下面是广告时间
fanbiya Q1重低音电脑mp3手机通用线控入耳式运动耳塞式带麦耳机 低至 9.99元
精致女人坊精品服饰