mirror of
https://github.com/AuthMe/AuthMeReloaded.git
synced 2024-11-30 14:13:35 +01:00
Send Email as UTF-8
This commit is contained in:
parent
9ae20df670
commit
3b33781b0b
@ -96,6 +96,7 @@ public class SendMailSSL {
|
||||
int port = Settings.getMailPort;
|
||||
|
||||
HtmlEmail email = new HtmlEmail();
|
||||
email.setCharset(org.apache.commons.mail.EmailConstants.UTF_8);
|
||||
email.setSmtpPort(port);
|
||||
email.setHostName(Settings.getmailSMTP);
|
||||
email.addTo(auth.getEmail());
|
||||
@ -129,7 +130,8 @@ public class SendMailSSL {
|
||||
return mailText.replace("<playername />", auth.getNickname()).replace("<servername />", plugin.getServer().getServerName()).replace("<generatedpass />", newPass);
|
||||
}
|
||||
|
||||
private static void setPropertiesForPort(HtmlEmail email, int port)
|
||||
@SuppressWarnings("deprecation")
|
||||
private static void setPropertiesForPort(HtmlEmail email, int port)
|
||||
throws EmailException {
|
||||
switch (port) {
|
||||
case 587:
|
||||
|
Loading…
Reference in New Issue
Block a user