mirror of
https://gitee.com/dromara/sms4j.git
synced 2025-12-06 17:08:40 +08:00
修改注释说明
This commit is contained in:
parent
013e2a17f0
commit
4641e83d22
@ -315,7 +315,7 @@ public interface MailClient {
|
||||
* @param mailAddress 收件人地址,添加多个
|
||||
* @param title 邮件标题
|
||||
* @param body 邮件文本正文
|
||||
* @param html html模板的输入流
|
||||
* @param html html模板的输入流,这个流可以来自任何来源,例如网络请求,或是本地文件,或者对象存储等
|
||||
* @param parameter key为模板的变量名称 无需携带大括号 value为模板变量所对应的值
|
||||
* @param files 附件,可添加多个 key 为文件名,value为文件的路径
|
||||
* @author :Wind
|
||||
@ -330,7 +330,7 @@ public interface MailClient {
|
||||
* @param mailAddress 收件人地址,添加多个
|
||||
* @param title 邮件标题
|
||||
* @param body 邮件文本正文
|
||||
* @param html html模板的输入流
|
||||
* @param html html模板的输入流,这个流可以来自任何来源,例如网络请求,或是本地文件,或者对象存储等
|
||||
* @param parameter 字段名称为变量名称,字段值为变量值
|
||||
* @param files 附件,可添加多个 key 为文件名,value为文件的路径
|
||||
* @author :Wind
|
||||
|
||||
@ -51,11 +51,12 @@ public class MailBuild {
|
||||
props.put("mail.smtp.port", config.getPort());
|
||||
props.put("mail.smtp.ssl.enable", config.getIsSSL());
|
||||
// props.put("mail.smtp.ssl.socketFactory", new MailSSLSocketFactory());
|
||||
this.session = Session.getInstance(props, new Authenticator() {
|
||||
protected PasswordAuthentication getPasswordAuthentication() {
|
||||
return new PasswordAuthentication(config.getUsername(), config.getPassword());
|
||||
}
|
||||
});
|
||||
this.session = Session.getInstance(props,
|
||||
new Authenticator() {
|
||||
protected PasswordAuthentication getPasswordAuthentication() {
|
||||
return new PasswordAuthentication(config.getUsername(), config.getPassword());
|
||||
}
|
||||
});
|
||||
this.message = new MimeMessage(session);
|
||||
this.message.setFrom(new InternetAddress(config.getFromAddress()));
|
||||
this.config = config;
|
||||
@ -72,7 +73,7 @@ public class MailBuild {
|
||||
/**
|
||||
* eliminate
|
||||
* <p>过滤黑名单内容
|
||||
* @param
|
||||
* @param source 需要过滤的源数据
|
||||
* @author :Wind
|
||||
*/
|
||||
public InternetAddress[] eliminate(List<String> source) {
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user