public final class MailSender extends Object
| Constructor and Description |
|---|
MailSender(Map<String,String> config) |
| Modifier and Type | Method and Description |
|---|---|
void |
deleteFile(File file)
file delete
|
AlertResult |
sendMails(List<String> receivers,
List<String> receiverCcs,
String title,
String content)
send mail
|
AlertResult |
sendMails(String title,
String content)
send mail to receivers
|
public AlertResult sendMails(String title, String content)
title - titlecontent - contentpublic AlertResult sendMails(List<String> receivers, List<String> receiverCcs, String title, String content)
receivers - receiversreceiverCcs - receiverCcstitle - titlecontent - contentpublic void deleteFile(File file)
file - the file to deleteCopyright © 2021 The Apache Software Foundation. All rights reserved.