public interface EmailService
Modifier and Type | Method and Description |
---|---|
void |
sendEmailToAdmins(String subject,
String body)
Sends email to administrators.
|
void |
sendFormattedEmail(String recipients,
String subject,
String body,
Object... values)
Sends formatted email to recipients.
|
static final String BEAN
void sendEmailToAdmins(String subject, String body)
subject
- the subjectbody
- the bodyvoid sendFormattedEmail(String recipients, String subject, String body, Object... values)
For example, message "Hi {}. My name is {}.", "Alice", "Bob" will return the string "Hi Alice. My name is Bob.".
recipients
- the comma separated recipients; if empty then email won't be sendsubject
- the subjectbody
- the body with possible placeholders {}
values
- the values for placeholders; count of values have to correspond with count of placeholdersCopyright © 2018 Pivotal Software, Inc.. All rights reserved.