<?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>topic Re: Error when Sending Mail with Macro? in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Error-when-Sending-Mail-with-Macro/m-p/1421604#M817864</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Check the below thread.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Not all the macro's will work on server.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;A href="https://community.qlik.com/thread/34443"&gt;macros not working on server&lt;/A&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 01 Sep 2017 03:17:42 GMT</pubDate>
    <dc:creator>techvarun</dc:creator>
    <dc:date>2017-09-01T03:17:42Z</dc:date>
    <item>
      <title>Error when Sending Mail with Macro?</title>
      <link>https://community.qlik.com/t5/QlikView/Error-when-Sending-Mail-with-Macro/m-p/1421603#M817863</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I'm using a Macro in a QlikView application to send a file by mail with gmail specifically.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;It works ok when I run it from my desktop, &lt;SPAN style="text-decoration: underline;"&gt;&lt;STRONG&gt;BUT&lt;/STRONG&gt;&lt;/SPAN&gt; when I try to execute it from the Remote Desktop Connection where we have the server and I get an error in the line &lt;SPAN style="font-size: 13.3333px;"&gt;&lt;SPAN style="text-decoration: underline;"&gt;&lt;STRONG&gt;objMsg.Send&lt;/STRONG&gt;&lt;/SPAN&gt; and I don't know what could it be... Because &lt;/SPAN&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;I have Internet connection on the Remote Desktop.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thank you!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;---&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Sub SendGMail()&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;MsgBox "Report Exported Successfully"&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;filepath="C:\Users\MyUser\Downloads\demo\test.txt"&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Set objMsg = CreateObject("CDO.Message")&lt;/P&gt;&lt;P&gt;Set msgConf = CreateObject("CDO.Configuration")&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;'Server Configuration&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;msgConf.Fields.Item("&lt;/SPAN&gt;&lt;A class="jive-link-external-small" href="http://schemas.microsoft.com/cdo/configuration/sendusing" rel="nofollow" target="_blank"&gt;http://schemas.microsoft.com/cdo/configuration/sendusing&lt;/A&gt;&lt;SPAN&gt;") = 2&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;msgConf.Fields.Item("&lt;/SPAN&gt;&lt;A class="jive-link-external-small" href="http://schemas.microsoft.com/cdo/configuration/smtpserver" rel="nofollow" target="_blank"&gt;http://schemas.microsoft.com/cdo/configuration/smtpserver&lt;/A&gt;&lt;SPAN&gt;") = "smtp.gmail.com"&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;msgConf.Fields.Item("&lt;/SPAN&gt;&lt;A class="jive-link-external-small" href="http://schemas.microsoft.com/cdo/configuration/smtpserverport" rel="nofollow" target="_blank"&gt;http://schemas.microsoft.com/cdo/configuration/smtpserverport&lt;/A&gt;&lt;SPAN&gt;") = 25&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;msgConf.Fields.Item("&lt;/SPAN&gt;&lt;A class="jive-link-external-small" href="http://schemas.microsoft.com/cdo/configuration/smtpauthenticate" rel="nofollow" target="_blank"&gt;http://schemas.microsoft.com/cdo/configuration/smtpauthenticate&lt;/A&gt;&lt;SPAN&gt;") = 1&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;msgConf.Fields.Item("&lt;/SPAN&gt;&lt;A class="jive-link-external-small" href="http://schemas.microsoft.com/cdo/configuration/sendusername" rel="nofollow" target="_blank"&gt;http://schemas.microsoft.com/cdo/configuration/sendusername&lt;/A&gt;&lt;SPAN&gt;") = "&lt;/SPAN&gt;&lt;A class="jive-link-email-small" href="mailto:demo@gmail.com" target="_blank"&gt;demo@gmail.com&lt;/A&gt;&lt;SPAN&gt;"&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;msgConf.Fields.Item("&lt;/SPAN&gt;&lt;A class="jive-link-external-small" href="http://schemas.microsoft.com/cdo/configuration/sendpassword" rel="nofollow" target="_blank"&gt;http://schemas.microsoft.com/cdo/configuration/sendpassword&lt;/A&gt;&lt;SPAN&gt;") = "1234567"&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;msgConf.Fields.Item("&lt;/SPAN&gt;&lt;A class="jive-link-external-small" href="http://schemas.microsoft.com/cdo/configuration/smtpusessl" rel="nofollow" target="_blank"&gt;http://schemas.microsoft.com/cdo/configuration/smtpusessl&lt;/A&gt;&lt;SPAN&gt;") = 1&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;msgConf.Fields.Update&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;'End With&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;objMsg.To = "&lt;/SPAN&gt;&lt;A class="jive-link-email-small" href="mailto:destination@gmail.com" target="_blank"&gt;destination@gmail.com&lt;/A&gt;&lt;SPAN&gt;"&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;objMsg.From = "&lt;/SPAN&gt;&lt;A class="jive-link-email-small" href="mailto:demo@gmail.com" target="_blank"&gt;demo@gmail.com&lt;/A&gt;&lt;SPAN&gt;"&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;objMsg.Subject = "Test Mail"&lt;/P&gt;&lt;P&gt;objMsg.HTMLBody = "QlikView Test Mail"&lt;/P&gt;&lt;P&gt;objMsg.AddAttachment&amp;nbsp;&amp;nbsp; filepath&amp;nbsp;&amp;nbsp;&amp;nbsp; ' Attachement&lt;/P&gt;&lt;P&gt;objMsg.Sender = "Mr. Name"&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Set objMsg.Configuration = msgConf&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;' Send&lt;/P&gt;&lt;P&gt;&lt;SPAN style="text-decoration: underline;"&gt;&lt;STRONG&gt;objMsg.Send&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;Msgbox("Email Sent Successfully")&lt;/P&gt;&lt;P&gt;' Clear&lt;/P&gt;&lt;P&gt;Set objMsg = nothing&lt;/P&gt;&lt;P&gt;Set msgConf = nothing&lt;/P&gt;&lt;P&gt;End Sub&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 25 Nov 2020 16:16:04 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Error-when-Sending-Mail-with-Macro/m-p/1421603#M817863</guid>
      <dc:creator>microwin88x</dc:creator>
      <dc:date>2020-11-25T16:16:04Z</dc:date>
    </item>
    <item>
      <title>Re: Error when Sending Mail with Macro?</title>
      <link>https://community.qlik.com/t5/QlikView/Error-when-Sending-Mail-with-Macro/m-p/1421604#M817864</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Check the below thread.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Not all the macro's will work on server.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;A href="https://community.qlik.com/thread/34443"&gt;macros not working on server&lt;/A&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 01 Sep 2017 03:17:42 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Error-when-Sending-Mail-with-Macro/m-p/1421604#M817864</guid>
      <dc:creator>techvarun</dc:creator>
      <dc:date>2017-09-01T03:17:42Z</dc:date>
    </item>
  </channel>
</rss>

