From dcbe2da0e6cae7d3e5a1ba34d7c4b72ff0add6db Mon Sep 17 00:00:00 2001 From: LevelX2 Date: Fri, 22 Jan 2016 17:46:57 +0100 Subject: [PATCH] Changed that mailgun or smtp server can be used to send mails from server. --- Mage.Server/config/config.xml | 11 +++++++++++ Mage.Server/src/main/java/mage/server/Main.java | 15 ++++++++++----- .../src/main/java/mage/server/Session.java | 11 +++++++++-- 3 files changed, 30 insertions(+), 7 deletions(-) diff --git a/Mage.Server/config/config.xml b/Mage.Server/config/config.xml index db1925307a9..58d8a10beaa 100644 --- a/Mage.Server/config/config.xml +++ b/Mage.Server/config/config.xml @@ -19,6 +19,17 @@ userNamePattern - pattern for user name validity check maxAiOpponents - number of allowed AI opponents on the server saveGameActivated - allow game save and replay options (not working correctly yet) + authenticationActivated - "true" = user have to register to signon "false" = user need not to register + * mail configs only needed if authentication is activated: + * if mailUser = "" mailgun is used otherwise nativ mail server on the system + googleAccount - not supported currently + mailgunApiKey - key from the mailgun domain e.g. = "key-12121111..." + mailgunDomain - domain for the mailgun message sending + mailSmtpHost - hostname to send the mail + mailSmtpPort - port to send the mail + mailUser - username used to send the mail + mailPassword - passworf of the used user to send the mail + mailFromAddress - sender address -->