java邮件开发
慢慢变富的程序员
活到老,学到老
展开
-
一个简单的邮件发送开发
package cn.zjgsu.netcom; import java.util.Properties; import javax.mail.Address; import javax.mail.Message; import javax.mail.Session; import javax.mail.Transport; import javax.mail.internet.Internet原创 2013-12-16 19:06:15 · 604 阅读 · 0 评论 -
用静态send方法发送邮件
package cn.zjgsu.netcom; import java.util.Properties; import javax.mail.Authenticator; import javax.mail.Message; import javax.mail.Message.RecipientType; import javax.mail.PasswordAuthentication; im原创 2013-12-17 18:38:27 · 567 阅读 · 0 评论 -
一封复杂点的邮件
package cn.zjgsu.netcom; import java.util.Properties; import javax.activation.DataHandler; import javax.activation.DataSource; import javax.activation.FileDataSource; import javax.mail.Address; impo原创 2013-12-18 20:55:51 · 529 阅读 · 0 评论