Class SmtpWhoEmailSender
java.lang.Object
org.jwcarman.who.email.smtp.SmtpWhoEmailSender
- All Implemented Interfaces:
WhoEmailSender
Sends who's emails over SMTP through Spring's
JavaMailSender: a text-only message, or a
multipart one with the HTML as an alternative to the text when the email has HTML.-
Constructor Summary
ConstructorsConstructorDescriptionSmtpWhoEmailSender(org.springframework.mail.javamail.JavaMailSender mailSender, String from) Creates the sender. -
Method Summary
-
Constructor Details
-
SmtpWhoEmailSender
Creates the sender.- Parameters:
mailSender- sends the messagesfrom- the address every email comes from
-
-
Method Details
-
send
Sends the email.- Specified by:
sendin interfaceWhoEmailSender- Parameters:
email- the rendered email- Throws:
org.springframework.mail.MailException- if it could not be built or sent
-