| Constructor and Description |
|---|
MailService() |
| Modifier and Type | Method and Description |
|---|---|
void |
sendMail(Iterable<String> recipientNames,
String loggedInName,
String subject,
String content,
List<InputStream> attachments,
List<String> filenames,
boolean withAttachment,
boolean footer)
Sends a mail with the specified content.
|
void |
sendMail(List<String> toAddressList,
List<String> ccAddressList,
String subject,
String content,
List<InputStream> attachments,
List<String> filenames,
boolean withAttachment)
Sends plain text email to users with given parameters.
|
void |
sendMailToAddresses(Iterable<String> recipientAddresses,
String loggedInName,
String subject,
String content,
List<InputStream> attachments,
List<String> filenames,
boolean withAttachment,
boolean footer)
Sends a mail with the specified content.
|
public void sendMail(Iterable<String> recipientNames, String loggedInName, String subject, String content, List<InputStream> attachments, List<String> filenames, boolean withAttachment, boolean footer)
recipientNames - the set of user names to set the mail to; the names should be in the same format as for authentication
and authorizationsubject - the subject of the mailcontent - the mail contentattachments - attachmentfilenames - file namewithAttachment - if true attachment is added to the messagefooter - whether to include footer with the URL to the applicationloggedInName - The name of the user logged in to the applicationpublic void sendMailToAddresses(Iterable<String> recipientAddresses, String loggedInName, String subject, String content, List<InputStream> attachments, List<String> filenames, boolean withAttachment, boolean footer)
recipientAddresses - the set of user addresses to set the mail to;
the names should be in the same format as for authentication and authorizationloggedInName - the name of the user invoking the notificationsubject - the subject of the mailcontent - the mail contentattachments - attachmentfilenames - file namewithAttachment - if true attachment is added to the messagefooter - whether to include footer with the URL to the applicationpublic void sendMail(List<String> toAddressList, List<String> ccAddressList, String subject, String content, List<InputStream> attachments, List<String> filenames, boolean withAttachment)
toAddressList - list of recipient mail addressesccAddressList - list of mail addresses that has to be set for CCsubject - the subject of the mailcontent - the email content (text)attachments - list of email-attachments (streams)filenames - attachment file-nameswithAttachment - should the email contain the attached files, or skip them?Copyright © 2025 European Spallation Source. All rights reserved.