linux下使用sendEmail发邮件 推荐
2017-05-03 12:35
316 查看
sendEmail是一个轻量级,命令行的SMTP邮件客户端。如果你需要使用命令行发送邮件,那么sendEmail是非常完美的选择:使用简单并且功能强大.这个被设计用在php、bash、perl和web站点使用。
下载及安装
# wget http://caspian.dotconf.net/menu/Software/SendEmail/sendEmail-v1.56.tar.gz # tar -xvf sendEmail-v1.56.tar.gz
sendEmail-v1.56/
sendEmail-v1.56/CHANGELOG
sendEmail-v1.56/README
sendEmail-v1.56/README-BR.txt
sendEmail-v1.56/TODO
sendEmail-v1.56/sendEmail
sendEmail-v1.56/sendEmail.pl
拷贝命令到系统环境变量路径下
# cd sendEmail-v1.56/
# cp sendEmail /usr/local/sbin/
/usr/local/sbin/sendEmail 命令主程序
发邮件命令如下:
# sendEmail -f name@163.com -t 123456@qq.com -s smtp.163.com -u "2017-05-03 record" -xu name -xp passwd -m "2017-05-03 record" -a "/data/test.txt"
-f xxxxx@163.com 发件人邮箱
-t 123456@qq.com 收件人邮箱
-s smtp.163.com 发件人邮箱的smtp服务器
-u "邮件主题" 邮件的标题
-o message-content-type=html 邮件内容的格式,html表示它是html格式
-o message-charset=utf8 邮件内容编码为utf8
-xu name@163.com 发件人邮箱的用户名
-xp passwd 发件人邮箱授权密码
-m "邮件内容" 邮件的具体内容
-a /data/test.txt 发送test.txt 这个文件
163邮箱需要在网页后台开启授权码
发送成功后会提示:
May 02 17:42:13 host sendEmail[58811]: Email was sent successfully!
下载及安装
# wget http://caspian.dotconf.net/menu/Software/SendEmail/sendEmail-v1.56.tar.gz # tar -xvf sendEmail-v1.56.tar.gz
sendEmail-v1.56/
sendEmail-v1.56/CHANGELOG
sendEmail-v1.56/README
sendEmail-v1.56/README-BR.txt
sendEmail-v1.56/TODO
sendEmail-v1.56/sendEmail
sendEmail-v1.56/sendEmail.pl
拷贝命令到系统环境变量路径下
# cd sendEmail-v1.56/
# cp sendEmail /usr/local/sbin/
/usr/local/sbin/sendEmail 命令主程序
发邮件命令如下:
# sendEmail -f name@163.com -t 123456@qq.com -s smtp.163.com -u "2017-05-03 record" -xu name -xp passwd -m "2017-05-03 record" -a "/data/test.txt"
-f xxxxx@163.com 发件人邮箱
-t 123456@qq.com 收件人邮箱
-s smtp.163.com 发件人邮箱的smtp服务器
-u "邮件主题" 邮件的标题
-o message-content-type=html 邮件内容的格式,html表示它是html格式
-o message-charset=utf8 邮件内容编码为utf8
-xu name@163.com 发件人邮箱的用户名
-xp passwd 发件人邮箱授权密码
-m "邮件内容" 邮件的具体内容
-a /data/test.txt 发送test.txt 这个文件
163邮箱需要在网页后台开启授权码
发送成功后会提示:
May 02 17:42:13 host sendEmail[58811]: Email was sent successfully!
相关文章推荐
- linux下使用sendEmail发邮件
- Linux下使用sendEmail发送带附件的邮件
- linux sendEmail工具的安装使用
- Linux下使用sendEmail发送带附件的邮件
- [Linux] git send-email的使用
- linux下配置使用sendEmail发送邮件
- linux sendEmail工具的安装使用
- [Linux] git send-email的使用
- 自学Zabbix3.10.2.1 linux如何配置使用sendEmail发送邮件
- SendEmail 安装发邮件通知 推荐
- linux sendEmail工具的安装使用
- Linux下使用sendEmail发送带附件的邮件(转载)
- smtpClient发邮件错误:不允许使用邮箱名称。 服务器响应为: You are not authorized to send mail, authentication is required
- An attempt was made to send an email when no email session has been established,SSIS用sql2008发邮件失败
- 推荐一个字体Linux下使用
- Linux。。email 的巧妙使用
- smtpClient发邮件错误:不允许使用邮箱名称。 服务器响应为: You are not authorized to send mail, authentication is required
- Linux下"base64"命令工具的使用 推荐
- Nagios使用SendEmail发送邮件
- unix linux windows 下的sqlldr使用及crontab部署和下发邮件