sendEmail example
文章目录
项目主页
http://caspian.dotconf.net/menu/Software/SendEmail/
example
#!/bin/bash
SUBJECT_NAME=`echo -n "你好,世界。Hello World" | base64`
SUBJECT="=?utf-8?b?$SUBJECT_NAME?="
attachment="/tmp/attach_path"
sendEmail -f "[email protected]" -t "[email protected]" -s smtp.exmail.qq.com -u "$SUBJECT" -o message-content-type=auto -o message-charset=UTF-8 -xu [email protected] -xp password -m "附件是上周工作周报,请查收" -a "$attachment"
中文要base64下,纯英文的话,就不需要。由于写完周报,懒得打开企业邮箱去发,所以有这个东西。