<?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 Export and Send Email in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Export-and-Send-Email/m-p/982376#M965241</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have a question about sending object via email from qlikview.&lt;/P&gt;&lt;P&gt;I've follow this thread &lt;A href="https://community.qlik.com/docs/DOC-3549"&gt;Exporting and Sending Objects via Email&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;when i run the macro the export function runs perfectly, but the email not sent to the receiver.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;This is the macro script&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P style="margin-bottom: .0001pt;"&gt;&lt;SPAN lang="EN-IN" style="font-size: 10.0pt; font-family: 'Verdana','sans-serif'; color: black;"&gt;Sub ExportEmail&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="margin-bottom: .0001pt;"&gt;&lt;SPAN lang="EN-IN" style="font-size: 10.0pt; font-family: 'Verdana','sans-serif'; color: black;"&gt;//Export the qlikview sheet as image to predestined location&lt;BR /&gt; &lt;STRONG&gt;Set obj = ActiveDocument.ActiveSheet&lt;BR /&gt; obj.ExportBitmapToFile "C:\\TestImageJPG.jpg"&lt;BR /&gt; &lt;/STRONG&gt;MsgBox "Exported"&lt;BR /&gt; &lt;STRONG&gt;//Object creation&lt;/STRONG&gt; &lt;BR /&gt; Set objMsg = CreateObject("CDO.Message") &lt;BR /&gt; Set msgConf = CreateObject("CDO.Configuration") &lt;BR /&gt; &lt;STRONG&gt;&lt;BR /&gt; // Server Configuration&lt;/STRONG&gt; &lt;BR /&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"&gt;http://schemas.microsoft.com/cdo/configuration/sendusing&lt;/A&gt;&lt;SPAN&gt;") = 2 &lt;/SPAN&gt;&lt;BR /&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"&gt;http://schemas.microsoft.com/cdo/configuration/smtpserver&lt;/A&gt;&lt;SPAN&gt;") = "smtp.gmail.com" &lt;/SPAN&gt;&lt;BR /&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"&gt;http://schemas.microsoft.com/cdo/configuration/smtpserverport&lt;/A&gt;&lt;SPAN&gt;") = 25 &lt;/SPAN&gt;&lt;BR /&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"&gt;http://schemas.microsoft.com/cdo/configuration/smtpauthenticate&lt;/A&gt;&lt;SPAN&gt;") = 1 &lt;/SPAN&gt;&lt;BR /&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"&gt;http://schemas.microsoft.com/cdo/configuration/sendusername&lt;/A&gt;&lt;SPAN&gt;") = "senders email address" &lt;/SPAN&gt;&lt;BR /&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"&gt;http://schemas.microsoft.com/cdo/configuration/sendpassword&lt;/A&gt;&lt;SPAN&gt;") = "password of your account" &lt;/SPAN&gt;&lt;BR /&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"&gt;http://schemas.microsoft.com/cdo/configuration/smtpusessl&lt;/A&gt;&lt;SPAN&gt;") = 1 &lt;/SPAN&gt;&lt;BR /&gt; msgConf.Fields.Update &lt;BR /&gt; ' Email &lt;BR /&gt; objMsg.Subject = "Export &amp;amp; Import" &lt;BR /&gt; objMsg.To = "receivers email address" &lt;BR /&gt; objMsg.From = "senders email address" &lt;BR /&gt; objMsg.HTMLBody = "&amp;lt;html&amp;gt;&amp;lt;body&amp;gt;Embedded Image:&amp;lt;br&amp;gt;&amp;lt;img src=""E:\\TestImageJPG.jpg""&amp;gt;&amp;lt;/body&amp;gt;&amp;lt;/html&amp;gt;"&lt;BR /&gt; Set objMsg.Configuration = msgConf &lt;BR /&gt; ' Send &lt;BR /&gt; objMsg.Send &lt;BR /&gt; Msgbox("Email Sent")&lt;BR /&gt; ' Clear &lt;BR /&gt; Set objMsg = nothing &lt;BR /&gt; Set msgConf = nothing&lt;BR /&gt; End Sub &lt;/SPAN&gt;&lt;/P&gt;&lt;P style="margin-bottom: .0001pt;"&gt;&lt;SPAN lang="EN-IN" style="font-size: 10.0pt; font-family: 'Verdana','sans-serif'; color: black;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="margin-bottom: .0001pt;"&gt;&lt;SPAN lang="EN-IN" style="font-size: 10.0pt; font-family: 'Verdana','sans-serif'; color: black;"&gt;Do you know how to solve it ? is it any mistakes in the server configuration. I'm using gmail to send the email.&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="margin-bottom: .0001pt;"&gt;&lt;SPAN lang="EN-IN" style="font-size: 10.0pt; font-family: 'Verdana','sans-serif'; color: black;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="margin-bottom: .0001pt;"&gt;&lt;SPAN lang="EN-IN" style="font-size: 10.0pt; font-family: 'Verdana','sans-serif'; color: black;"&gt;Thanks, really appreciate your help.&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 02 Oct 2015 04:33:52 GMT</pubDate>
    <dc:creator>Anonymous</dc:creator>
    <dc:date>2015-10-02T04:33:52Z</dc:date>
    <item>
      <title>Export and Send Email</title>
      <link>https://community.qlik.com/t5/QlikView/Export-and-Send-Email/m-p/982376#M965241</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have a question about sending object via email from qlikview.&lt;/P&gt;&lt;P&gt;I've follow this thread &lt;A href="https://community.qlik.com/docs/DOC-3549"&gt;Exporting and Sending Objects via Email&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;when i run the macro the export function runs perfectly, but the email not sent to the receiver.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;This is the macro script&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P style="margin-bottom: .0001pt;"&gt;&lt;SPAN lang="EN-IN" style="font-size: 10.0pt; font-family: 'Verdana','sans-serif'; color: black;"&gt;Sub ExportEmail&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="margin-bottom: .0001pt;"&gt;&lt;SPAN lang="EN-IN" style="font-size: 10.0pt; font-family: 'Verdana','sans-serif'; color: black;"&gt;//Export the qlikview sheet as image to predestined location&lt;BR /&gt; &lt;STRONG&gt;Set obj = ActiveDocument.ActiveSheet&lt;BR /&gt; obj.ExportBitmapToFile "C:\\TestImageJPG.jpg"&lt;BR /&gt; &lt;/STRONG&gt;MsgBox "Exported"&lt;BR /&gt; &lt;STRONG&gt;//Object creation&lt;/STRONG&gt; &lt;BR /&gt; Set objMsg = CreateObject("CDO.Message") &lt;BR /&gt; Set msgConf = CreateObject("CDO.Configuration") &lt;BR /&gt; &lt;STRONG&gt;&lt;BR /&gt; // Server Configuration&lt;/STRONG&gt; &lt;BR /&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"&gt;http://schemas.microsoft.com/cdo/configuration/sendusing&lt;/A&gt;&lt;SPAN&gt;") = 2 &lt;/SPAN&gt;&lt;BR /&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"&gt;http://schemas.microsoft.com/cdo/configuration/smtpserver&lt;/A&gt;&lt;SPAN&gt;") = "smtp.gmail.com" &lt;/SPAN&gt;&lt;BR /&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"&gt;http://schemas.microsoft.com/cdo/configuration/smtpserverport&lt;/A&gt;&lt;SPAN&gt;") = 25 &lt;/SPAN&gt;&lt;BR /&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"&gt;http://schemas.microsoft.com/cdo/configuration/smtpauthenticate&lt;/A&gt;&lt;SPAN&gt;") = 1 &lt;/SPAN&gt;&lt;BR /&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"&gt;http://schemas.microsoft.com/cdo/configuration/sendusername&lt;/A&gt;&lt;SPAN&gt;") = "senders email address" &lt;/SPAN&gt;&lt;BR /&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"&gt;http://schemas.microsoft.com/cdo/configuration/sendpassword&lt;/A&gt;&lt;SPAN&gt;") = "password of your account" &lt;/SPAN&gt;&lt;BR /&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"&gt;http://schemas.microsoft.com/cdo/configuration/smtpusessl&lt;/A&gt;&lt;SPAN&gt;") = 1 &lt;/SPAN&gt;&lt;BR /&gt; msgConf.Fields.Update &lt;BR /&gt; ' Email &lt;BR /&gt; objMsg.Subject = "Export &amp;amp; Import" &lt;BR /&gt; objMsg.To = "receivers email address" &lt;BR /&gt; objMsg.From = "senders email address" &lt;BR /&gt; objMsg.HTMLBody = "&amp;lt;html&amp;gt;&amp;lt;body&amp;gt;Embedded Image:&amp;lt;br&amp;gt;&amp;lt;img src=""E:\\TestImageJPG.jpg""&amp;gt;&amp;lt;/body&amp;gt;&amp;lt;/html&amp;gt;"&lt;BR /&gt; Set objMsg.Configuration = msgConf &lt;BR /&gt; ' Send &lt;BR /&gt; objMsg.Send &lt;BR /&gt; Msgbox("Email Sent")&lt;BR /&gt; ' Clear &lt;BR /&gt; Set objMsg = nothing &lt;BR /&gt; Set msgConf = nothing&lt;BR /&gt; End Sub &lt;/SPAN&gt;&lt;/P&gt;&lt;P style="margin-bottom: .0001pt;"&gt;&lt;SPAN lang="EN-IN" style="font-size: 10.0pt; font-family: 'Verdana','sans-serif'; color: black;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="margin-bottom: .0001pt;"&gt;&lt;SPAN lang="EN-IN" style="font-size: 10.0pt; font-family: 'Verdana','sans-serif'; color: black;"&gt;Do you know how to solve it ? is it any mistakes in the server configuration. I'm using gmail to send the email.&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="margin-bottom: .0001pt;"&gt;&lt;SPAN lang="EN-IN" style="font-size: 10.0pt; font-family: 'Verdana','sans-serif'; color: black;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="margin-bottom: .0001pt;"&gt;&lt;SPAN lang="EN-IN" style="font-size: 10.0pt; font-family: 'Verdana','sans-serif'; color: black;"&gt;Thanks, really appreciate your help.&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 02 Oct 2015 04:33:52 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Export-and-Send-Email/m-p/982376#M965241</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2015-10-02T04:33:52Z</dc:date>
    </item>
  </channel>
</rss>

