public class DefaultMailServiceImpl extends java.lang.Object implements MailService
| Constructor and Description |
|---|
DefaultMailServiceImpl() |
| Modifier and Type | Method and Description |
|---|---|
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)
Method to send emails.
|
public void sendEmail(@NotBlank(message="Cannot send email to blank address.") @Nonnull
@NotBlank(message="Cannot send email to blank address.") java.lang.String toEmail,
@NotBlank(message="Subject cannot be empty") @Nonnull
@NotBlank(message="Subject cannot be empty") java.lang.String subject,
@Nullable
java.lang.String body)
throws com.netflix.genie.common.exceptions.GenieException
sendEmail in interface MailServicetoEmail - The email address to send the email to.subject - The subject of the email.body - The body of the emailcom.netflix.genie.common.exceptions.GenieException - If there is any problem