This is an automated email from the ASF dual-hosted git repository.

solomax pushed a commit to branch 4.0.x
in repository https://gitbox.apache.org/repos/asf/openmeetings.git


The following commit(s) were added to refs/heads/4.0.x by this push:
     new 326df4e  [OPENMEETINGS-1880] mail sending via TLS server is fixed
326df4e is described below

commit 326df4ec4b310a1f539669bfc4702e273553df48
Author: Maxim Solodovnik <[email protected]>
AuthorDate: Sat Apr 28 21:22:19 2018 +0700

    [OPENMEETINGS-1880] mail sending via TLS server is fixed
---
 .../src/main/java/org/apache/openmeetings/core/mail/MailHandler.java     | 1 +
 1 file changed, 1 insertion(+)

diff --git 
a/openmeetings-core/src/main/java/org/apache/openmeetings/core/mail/MailHandler.java
 
b/openmeetings-core/src/main/java/org/apache/openmeetings/core/mail/MailHandler.java
index e5106ea..d067949 100644
--- 
a/openmeetings-core/src/main/java/org/apache/openmeetings/core/mail/MailHandler.java
+++ 
b/openmeetings-core/src/main/java/org/apache/openmeetings/core/mail/MailHandler.java
@@ -178,6 +178,7 @@ public class MailHandler {
                props.put("mail.smtp.host", smtpServer);
                props.put("mail.smtp.port", smtpPort);
                if (mailTls) {
+                       props.put("mail.smtp.ssl.trust", smtpServer);
                        props.put("mail.smtp.starttls.enable", "true");
                }
                props.put("mail.smtp.connectiontimeout", smtpConnectionTimeOut);

-- 
To stop receiving notification emails like this one, please contact
[email protected].

Reply via email to