为看起来完全正常的邮件地址获取此错误。任何帮助都会得到满足。
public static MailAddress toUtf8(this MailAddress address)
{
return new MailAddress(address.Address?.ToUpper(), address.DisplayName, Encoding.UTF8);
}
使用此功能将每个地址转换为utf8:
package com.tdk.iot;
@SpringBootApplication
@Import({SecurityConfig.class })
public class TdkApplication {
public static void main(String[] args) {
SpringApplication.run(TdkApplication.class, args);
}
}