package im.zhaojun.system.service;


//@Service
public class MailService {

//    @Value("${spring.mail.username}")
//    private String form;

//    @Resource
//    private JavaMailSender mailSender;

//    public void sendHTMLMail(String to, String subject, String content) {
//        MimeMessage mimeMessage = mailSender.createMimeMessage();
//        MimeMessageHelper helper;
//        try {
//            helper = new MimeMessageHelper(mimeMessage, true);
//            helper.setTo(to);
//            helper.setSubject(subject);
//            helper.setText(content, true);
//            helper.setFrom(form);
//        } catch (MessagingException e) {
//            e.printStackTrace();
//        }
//        mailSender.send(mimeMessage);
//    }
}
