调用DEMO var currUser = new List<string> { "123@qq.com" , "123@qq.com" , "123@qq.com" }:// 单个 var title = "test"; var content = "hello word"; mh.SendSMTPEMail(currUser, title, content); 方法: public clas
这个今天刚好用到,就测试了一下.OK了..因为,PYTHON模块是可以,但SHELL脚本用SHELL发,还是合拍点.. http://my.oschina.net/duangr/blog/183162 1. Sendmail配置 配置发送邮件的邮箱认证信息 vi /etc/mail.rc --- 增加如下内容 --- set from=yourname@your-domain.com set smtp=mail.your-domain.com set smtp-auth-user=yournam
1.采用SMTP的邮件发送协议.准备:在网易注册一个邮箱,进入设置开启SMTP/pop3协议 2.接下来就是java代码实现了,下面都有注释,就不多做解释了. public class mail { public static void main(String[] args) throws Exception { Properties prop = new Properties(); prop.setProperty("mail.transport.protocol", "s