3-28 1 views
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 |
MAILFROM="abc@abc.com" #可以随便写 MAILTO="yourself email" #你自己的邮箱,不过现在常用的邮箱都有防垃圾邮件,可以试试163应该还是能正常接收的 subject="TEST Email" header="" header="${header}Subject: ${subject}\n" header="${header}From: ${MAILFROM}\n" header="${header}To: ${MAILTO}\n" contents="" contents="${contents}--------Test email---------\n" contents="${contents}Hello\n" contents="${contents}World\n" contents="${contents}------------------------------\n" contents="${contents}\n" echo -e "${header}\n${contents}" | /usr/sbin/sendmail -t -i |
如果想赏钱,可以用微信扫描下面的二维码,一来能刺激我写博客的欲望,二来好维护云主机的费用; 另外再次标注博客原地址 itnotebooks.com 感谢!
