SHARE
TWEET

Untitled

a guest Apr 27th, 2016 161 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. mail:
  2.         host: smtp.mail.yahoo.com
  3.         port: 587
  4.         username: xxx
  5.         password: xxx
  6.         protocol: smtp
  7.         properties.mail.smtp:
  8.             auth: true
  9.             starttls.enable: true
  10.    
  11. @Inject
  12. private JavaMailSenderImpl javaMailSender;
  13. ...
  14.  
  15. MimeMessage mimeMessage = javaMailSender.createMimeMessage();
  16. message.setTo(to);
  17. message.setFrom(fromEmail);
  18. message.setSubject(subject);
  19. message.setText(content, isHtml);
  20. javaMailSender.send(mimeMessage);
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
 
Top