Attempting to connect to Gmail SMTP server over port 587, Amazon SES over port 587 and Office Mail 365 over port 587 using SSL, results in a connection error. This article explains what needs to be done in order to make this connection work properly.
Environment:
Cause:
Email servers may require encryption when sending email.
Resolution:
Use the following steps to configure an SSL connection to an SMTP email service when using Publisher:
- Browse to C:\Program Files\QlikView\Management Service and edit the QVManagementService.exe.config file.
- Look for string "UseSSLForSMTP". If the entry already exists, edit its value to "true"
- If "UseSSLForSMTP" does not exist, place the following two lines of code under the <!--****** SMTP ****** --> section:
- <!--The following allows SSL connections to an SMTP mail service-->
- <add key="UseSSLForSMTP" value="true"/>
- Browse to C:\Program Files\QlikView\Distribution Service and edit the QVDistributionService.exe.config file.
- Look for string "UseSSLForSMTP". If the entry already exists, edit its value to "true"
- If "UseSSLForSMTP" does not exist, place the following two lines of code under the <!--****** SMTP ****** --> section:
- <!--The following allows SSL connections to an SMTP mail service-->
- <add key="UseSSLForSMTP" value="true"/>
For Gmail, use port 587(smtp.gmail.com);Also the Gmail account needs to:
For Amazon Simple Email Service(SES), use port 587.
For Microsoft 365 service, use smtp.office365.com for address and port 587. Also see the following article for an alternative: Office 365 SMTP setup for Qlikview