摘要:使用spring提供的MailSender和JavaMailSender类。1、邮件对象类package cn.luxh.app.mail;import java.util.List;import org.springframework.core.io.AbstractResource;public class Email { //发件人 private String from; //收件人 private String[] to; //主题 private String subject; //邮件内容 private String text; ...
阅读全文
posted @ 2013-07-16 14:51