public class DefaultMailServiceImpl extends java.lang.Object implements MailService
Constructor and Description |
---|
DefaultMailServiceImpl() |
Modifier and Type | Method and Description |
---|---|
void |
sendEmail(java.lang.String toEmail,
java.lang.String subject,
java.lang.String body)
Method to send emails.
|
public void sendEmail(@NotBlank(message="Cannot send email to blank address.") java.lang.String toEmail, @NotBlank(message="Subject cannot be empty") java.lang.String subject, java.lang.String body) throws GenieException
sendEmail
in interface MailService
toEmail
- The email address to send the email to.subject
- The subject of the email.body
- The body of the emailGenieException
- If there is any problem