public class MailUtils extends Object
| 限定符和类型 | 字段和说明 |
|---|---|
static AlertTemplate |
alertTemplate |
static org.slf4j.Logger |
logger |
static String |
MAIL_PASSWD |
static String |
MAIL_PROTOCOL |
static String |
MAIL_SENDER |
static String |
MAIL_SERVER_HOST |
static Integer |
MAIL_SERVER_PORT |
static String |
MAIL_USER |
static String |
SSL_ENABLE |
static String |
SSL_TRUST |
static String |
STARTTLS_ENABLE |
static String |
XLS_FILE_PATH |
| 构造器和说明 |
|---|
MailUtils() |
| 限定符和类型 | 方法和说明 |
|---|---|
static void |
deleteFile(File file)
file delete
|
static Map<String,Object> |
sendMails(Collection<String> receivers,
Collection<String> receiversCc,
String title,
String content,
String showType)
send mail
|
static Map<String,Object> |
sendMails(Collection<String> receivers,
String title,
String content,
String showType)
send mail to receivers
|
public static final org.slf4j.Logger logger
public static final String MAIL_PROTOCOL
public static final String MAIL_SERVER_HOST
public static final Integer MAIL_SERVER_PORT
public static final String MAIL_SENDER
public static final String MAIL_USER
public static final String MAIL_PASSWD
public static final String XLS_FILE_PATH
public static final String STARTTLS_ENABLE
public static final String SSL_ENABLE
public static final String SSL_TRUST
public static final AlertTemplate alertTemplate
public static Map<String,Object> sendMails(Collection<String> receivers, String title, String content, String showType)
receivers - the receiver listtitle - the titlecontent - the contentshowType - the show typepublic static Map<String,Object> sendMails(Collection<String> receivers, Collection<String> receiversCc, String title, String content, String showType)
receivers - the receiver listreceiversCc - cc listtitle - the titlecontent - the contentshowType - the show typepublic static void deleteFile(File file)
file - the file to deleteCopyright © 2021 The Apache Software Foundation. All rights reserved.