<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>article How to connect to Gmail SMTP server over port 465 using SSL via QlikView desktop? in Official Support Articles</title>
    <link>https://community.qlik.com/t5/Official-Support-Articles/How-to-connect-to-Gmail-SMTP-server-over-port-465-using-SSL-via/ta-p/1710598</link>
    <description>&lt;P&gt;&lt;BR /&gt;Attempting to connect to Gmail SMTP server over port 465 using SSL, but get a connection error.&lt;BR /&gt;&lt;BR /&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="pic1.jpg" style="width: 654px;"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/54692iC830E727896781D1/image-size/large?v=v2&amp;amp;px=999" role="button" title="pic1.jpg" alt="pic1.jpg" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;H4&gt;Resolution:&lt;/H4&gt;
&lt;P&gt;&lt;BR /&gt;The problem is that gmail-smtp port 465 requires SSL to work (&lt;A href="http://support.google.com/mail/bin/answer.py?hl=en&amp;amp;answer=13287" target="_blank" rel="noopener"&gt;http://support.google.com/mail/bin/answer.py?hl=en&amp;amp;answer=13287&lt;/A&gt;).&lt;BR /&gt;&amp;nbsp;&lt;/P&gt;
&lt;DIV&gt;There is also another way to connect to GMail SMTP server, i.e. by using Macro (using a macro: &lt;A href="http://community.qlikview.com/thread/25067)&amp;nbsp;" target="test_blank"&gt;http://community.qlikview.com/thread/25067)&amp;nbsp;&lt;/A&gt;&lt;/DIV&gt;
&lt;DIV&gt;&amp;nbsp;
&lt;PRE&gt;Sub SendGMail() 

' Object creation 
Set objMsg = CreateObject("CDO.Message") 
Set msgConf = CreateObject("CDO.Configuration") 

' Server Configuration 
msgConf.Fields.Item("http://schemas.microsoft.com/cdo/configuration/sendusing") = 2 
msgConf.Fields.Item("http://schemas.microsoft.com/cdo/configuration/smtpserver") = "smtp.gmail.com" 
msgConf.Fields.Item("http://schemas.microsoft.com/cdo/configuration/smtpserverport") = 465 
msgConf.Fields.Item("http://schemas.microsoft.com/cdo/configuration/smtpauthenticate") = 1 
msgConf.Fields.Item("http://schemas.microsoft.com/cdo/configuration/sendusername") = "user@gmail.com" 
msgConf.Fields.Item("http://schemas.microsoft.com/cdo/configuration/sendpassword") = "password" 
msgConf.Fields.Item("http://schemas.microsoft.com/cdo/configuration/smtpusessl") = 1 
msgConf.Fields.Update 

' Email 
objMsg.To = "user@gmail.com" 
objMsg.From = "fromuser@domain.com" 
objMsg.Subject = "Test send with Gmail account" 
objMsg.HTMLBody = "HTML/Plain text message." 
objMsg.Sender = "Mr. Name" 

Set objMsg.Configuration = msgConf 

' Send 
objMsg.Send 

' Clear 
Set objMsg = nothing 
Set msgConf = nothing

End Sub&lt;/PRE&gt;
&lt;/DIV&gt;</description>
    <pubDate>Thu, 09 Sep 2021 08:37:03 GMT</pubDate>
    <dc:creator>Sonja_Bauernfeind</dc:creator>
    <dc:date>2021-09-09T08:37:03Z</dc:date>
    <item>
      <title>How to connect to Gmail SMTP server over port 465 using SSL via QlikView desktop?</title>
      <link>https://community.qlik.com/t5/Official-Support-Articles/How-to-connect-to-Gmail-SMTP-server-over-port-465-using-SSL-via/ta-p/1710598</link>
      <description>&lt;P&gt;&lt;BR /&gt;Attempting to connect to Gmail SMTP server over port 465 using SSL, but get a connection error.&lt;BR /&gt;&lt;BR /&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="pic1.jpg" style="width: 654px;"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/54692iC830E727896781D1/image-size/large?v=v2&amp;amp;px=999" role="button" title="pic1.jpg" alt="pic1.jpg" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;H4&gt;Resolution:&lt;/H4&gt;
&lt;P&gt;&lt;BR /&gt;The problem is that gmail-smtp port 465 requires SSL to work (&lt;A href="http://support.google.com/mail/bin/answer.py?hl=en&amp;amp;answer=13287" target="_blank" rel="noopener"&gt;http://support.google.com/mail/bin/answer.py?hl=en&amp;amp;answer=13287&lt;/A&gt;).&lt;BR /&gt;&amp;nbsp;&lt;/P&gt;
&lt;DIV&gt;There is also another way to connect to GMail SMTP server, i.e. by using Macro (using a macro: &lt;A href="http://community.qlikview.com/thread/25067)&amp;nbsp;" target="test_blank"&gt;http://community.qlikview.com/thread/25067)&amp;nbsp;&lt;/A&gt;&lt;/DIV&gt;
&lt;DIV&gt;&amp;nbsp;
&lt;PRE&gt;Sub SendGMail() 

' Object creation 
Set objMsg = CreateObject("CDO.Message") 
Set msgConf = CreateObject("CDO.Configuration") 

' Server Configuration 
msgConf.Fields.Item("http://schemas.microsoft.com/cdo/configuration/sendusing") = 2 
msgConf.Fields.Item("http://schemas.microsoft.com/cdo/configuration/smtpserver") = "smtp.gmail.com" 
msgConf.Fields.Item("http://schemas.microsoft.com/cdo/configuration/smtpserverport") = 465 
msgConf.Fields.Item("http://schemas.microsoft.com/cdo/configuration/smtpauthenticate") = 1 
msgConf.Fields.Item("http://schemas.microsoft.com/cdo/configuration/sendusername") = "user@gmail.com" 
msgConf.Fields.Item("http://schemas.microsoft.com/cdo/configuration/sendpassword") = "password" 
msgConf.Fields.Item("http://schemas.microsoft.com/cdo/configuration/smtpusessl") = 1 
msgConf.Fields.Update 

' Email 
objMsg.To = "user@gmail.com" 
objMsg.From = "fromuser@domain.com" 
objMsg.Subject = "Test send with Gmail account" 
objMsg.HTMLBody = "HTML/Plain text message." 
objMsg.Sender = "Mr. Name" 

Set objMsg.Configuration = msgConf 

' Send 
objMsg.Send 

' Clear 
Set objMsg = nothing 
Set msgConf = nothing

End Sub&lt;/PRE&gt;
&lt;/DIV&gt;</description>
      <pubDate>Thu, 09 Sep 2021 08:37:03 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Official-Support-Articles/How-to-connect-to-Gmail-SMTP-server-over-port-465-using-SSL-via/ta-p/1710598</guid>
      <dc:creator>Sonja_Bauernfeind</dc:creator>
      <dc:date>2021-09-09T08:37:03Z</dc:date>
    </item>
  </channel>
</rss>

