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

vorburger pushed a commit to branch develop
in repository https://gitbox.apache.org/repos/asf/fineract.git


The following commit(s) were added to refs/heads/develop by this push:
     new eabb7b0  Fix missing SMTP Server Port in 
GmailBackedPlatformEmailService (FINERACT-1070)
eabb7b0 is described below

commit eabb7b08096b17aa9430869625fd5d86ed2a01bb
Author: Michael Vorburger <[email protected]>
AuthorDate: Wed Dec 2 07:42:51 2020 +0100

    Fix missing SMTP Server Port in GmailBackedPlatformEmailService 
(FINERACT-1070)
---
 .../infrastructure/core/service/GmailBackedPlatformEmailService.java   | 3 +++
 1 file changed, 3 insertions(+)

diff --git 
a/fineract-provider/src/main/java/org/apache/fineract/infrastructure/core/service/GmailBackedPlatformEmailService.java
 
b/fineract-provider/src/main/java/org/apache/fineract/infrastructure/core/service/GmailBackedPlatformEmailService.java
index e5e49c2..2448734 100644
--- 
a/fineract-provider/src/main/java/org/apache/fineract/infrastructure/core/service/GmailBackedPlatformEmailService.java
+++ 
b/fineract-provider/src/main/java/org/apache/fineract/infrastructure/core/service/GmailBackedPlatformEmailService.java
@@ -69,6 +69,9 @@ public class GmailBackedPlatformEmailService implements 
PlatformEmailService {
         try {
             if (smtpCredentialsData.isUseTLS()) {
                 
email.getMailSession().getProperties().put("mail.smtp.starttls.enable", "true");
+                email.setSslSmtpPort(smtpCredentialsData.getPort());
+            } else {
+                
email.setSmtpPort(Integer.parseInt(smtpCredentialsData.getPort()));
             }
             email.setFrom(smtpCredentialsData.getFromEmail(), 
smtpCredentialsData.getFromName());
 

Reply via email to