private MailSender() {
prop.setProperty("mail.transport.protocol", mail_transport_protocol);
prop.setProperty("mail.host", mail_host);
prop.setProperty("mail.port", mail_port);
prop.setProperty("mail.smtp.auth", Symphonys.get("mail.smtp.auth"));
prop.setProperty("mail.smtp.ssl", Symphonys.get("mail.smtp.ssl"));
prop.setProperty("mail.smtp.sender", sender);
prop.setProperty("mail.smtp.username", username);
prop.setProperty("mail.smtp.passsword", password);
}
#### Local Mail channel ####
# only for mail.channel=local , config of SMTP email, eg: can use 126 or 163 SMTP proxy
# \u8BBE\u7F6E\u4E3A debug \u6A21\u5F0F\u65F6\uFF0C\u540E\u53F0\u63A7\u5236\u53F0\u4F1A\u8F93\u51FA\u90AE\u4EF6\u53D1\u9001\u8FC7\u7A0B
mail.local.isdebug=true
# \u4F20\u8F93\u534F\u8BAE\u4F7F\u7528 smtp
mail.local.transport.protocol=smtp
# smtp \u90AE\u4EF6\u670D\u52A1\u5668
mail.local.host=smtp.163.com
# smtp \u7AEF\u53E3\u53F7\u8BBE\u7F6E
mail.local.port=25
# \u5F00\u542F\u8BA4\u8BC1
mail.local.smtp.auth=true
mail.local.smtp.ssl=true
#mail.local.smtp.starttls.enable=true
# \u53D1\u9001\u8005\u7684 Email
mail.local.smtp.sender=yourAccount@163.com
# \u53D1\u9001\u8005\u540D\u79F0
mail.local.smtp.username=
# \u90AE\u4EF6\u9A8C\u8BC1\u5BC6\u7801\uFF0C126 \u7684 STMP \u670D\u52A1\u7684\u5BA2\u6237\u7AEF\u5BC6\u7801\u9700\u8981\u81EA\u5DF1\u5F00\u901A\uFF0C\u4E0D\u662F\u767B\u5F55\u5BC6\u7801\u54E6\uFF0C\u6362\u6210\u4F60\u81EA\u5DF1\u7684
mail.local.smtp.passsword=
# \u90AE\u4EF6\u4FDD\u5B58\u76EE\u5F55\uFF0C\u7EDD\u5BF9\u8DEF\u5F84
mail.local.saved.eml.path=D:/
欢迎来到这里!
我们正在构建一个小众社区,大家在这里相互信任,以平等 • 自由 • 奔放的价值观进行分享交流。最终,希望大家能够找到与自己志同道合的伙伴,共同成长。
注册 关于