Add MailClient that uses Java Mail API to send emails. Use it instead of Mailgun client.

This commit is contained in:
Me Car 2016-01-22 21:40:08 +09:00
parent 9ebc2d5991
commit 9ca8342e34
6 changed files with 85 additions and 2 deletions

View file

@ -147,6 +147,26 @@ public class ConfigSettings {
return config.getServer().getMailgunDomain();
}
public String getMailSmtpHost() {
return config.getServer().getMailSmtpHost();
}
public String getMailSmtpPort() {
return config.getServer().getMailSmtpPort();
}
public String getMailUser() {
return config.getServer().getMailUser();
}
public String getMailPassword() {
return config.getServer().getMailPassword();
}
public String getMailFromAddress() {
return config.getServer().getMailFromAddress();
}
public List<Plugin> getPlayerTypes() {
return config.getPlayerTypes().getPlayerType();
}