Grails Mail Plugin Konfiguration für MS Exchange Server
Ich kann E-Mails mit meinem Google Mail-Konto aus meiner Grails-Anwendung senden, aber wenn ich ein MS Exchange Server-Konto verwende, wird dieser Fehler angezeigt
Message: Mail server connection failed; nested exception is com.sun.mail.util.MailConnectException: Couldn't connect to host, port: smtp.exg6.exghost.com/, 25; timeout -1;
Die von mir verwendete Konfiguration ist:
mail {
host = "smtp.exg6.exghost.com"
port = 25
username = "xxxx"
password = "xxxx"
props = ["mail.smtp.auth":"true",
"mail.smtp.socketFactory.port":"25",
"mail.smtp.socketFactory.class":"javax.net.ssl.SSLSocketFactory",
"mail.smtp.socketFactory.fallback":"false"]
Ich bin nicht sicher, welche Konfiguration ich verwenden soll. Ich habe versucht, den Port auf 465 & 993 zu ändern, aber das hat auch nicht funktioniert. Bitte helfen Sie