sendEmail是一个轻量级的MTA,有了它可直接用shell脚本来发邮件,可用于crontab任务、zabbix报警各种场合,不必搭建繁琐的邮件服务。 # wget http://caspian.
sendEmail是一个轻量级的MTA,有了它可直接用shell脚本来发邮件,可用于crontab任务、zabbix报警各种场合,不必搭建繁琐的邮件服务。
# wget http://caspian.dotconf.net/menu/Software/SendEmail/sendEmail-v1.56.tar.gz
# tar -xzvf sendEmail-v1.56.tar.gz
# mv sendEmail /usr/local/bin/
发送邮件
# /usr/local/bin/sendEmail -f [email protected] -t [email protected] /
-s smtp.163.com -u "邮件主题" -o message-content-type=html /
-o message-charset=utf8 -xu [email protected] -xp 123456 -m "邮件内容"
# /usr/local/bin/sendEmail -f [email protected] -t [email protected] /
-s smtp.163.com -u "邮件主题" -o message-content-type=html /
-o message-charset=utf8 -xu [email protected] -xp 123456 -m "邮件内容"
命令说明:
/usr/local/bin/sendEmail 命令主程序
-f [email protected] 发件人邮箱
-s smtp.163.com 发件人邮箱的smtp服务器
-u "邮件主题" 邮件的标题
-o message-content-type=html 邮件内容的格式,html表示它是html格式
-o message-charset=utf8 邮件内容编码
-xu [email protected] 发件人邮箱的用户名
-xp 123456 发件人邮箱密码
-m "邮件内容" 邮件的具体内容
/usr/local/bin/sendEmail 命令主程序
-f [email protected] 发件人邮箱
-s smtp.163.com 发件人邮箱的smtp服务器
-u "邮件主题" 邮件的标题
-o message-content-type=html 邮件内容的格式,html表示它是html格式
-o message-charset=utf8 邮件内容编码
-xu [email protected] 发件人邮箱的用户名
-xp 123456 发件人邮箱密码
-m "邮件内容" 邮件的具体内容