mirror of
https://gitee.com/chinabugotech/hutool.git
synced 2025-07-21 15:09:48 +08:00
邮箱校验添加对中文的支持
This commit is contained in:
@@ -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
|
||||
|
Reference in New Issue
Block a user