邮箱校验添加对中文的支持

This commit is contained in:
Looly
2023-05-14 23:18:28 +08:00
parent 9c532f8a15
commit 7894e58171
3 changed files with 7 additions and 5 deletions

View File

@@ -31,10 +31,10 @@ import java.util.Map;
import java.util.Map.Entry;
/**
* 邮件工具类基于javax.mail封装
* 邮件工具类基于jakarta.mail封装
*
* @author looly
* @since 3.1.2
* @since 6.0.0
*/
public class MailUtil {
/**
@@ -387,7 +387,7 @@ public class MailUtil {
}
return isSingleton ? Session.getDefaultInstance(mailAccount.getSmtpProps(), authenticator) //
: Session.getInstance(mailAccount.getSmtpProps(), authenticator);
: Session.getInstance(mailAccount.getSmtpProps(), authenticator);
}
// ------------------------------------------------------------------------------------------------------------------------ Private method start