@Validated
public interface MailService
| 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.
|
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 GenieException
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