<?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: Send an object via e-mail with macro? in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Send-an-object-via-e-mail-with-macro/m-p/915804#M981964</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Ok i think it may be something like this:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;send the email with an embebed html code&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 07 Aug 2015 15:28:57 GMT</pubDate>
    <dc:creator />
    <dc:date>2015-08-07T15:28:57Z</dc:date>
    <item>
      <title>Send an object via e-mail with macro?</title>
      <link>https://community.qlik.com/t5/QlikView/Send-an-object-via-e-mail-with-macro/m-p/915800#M981959</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 to send every day an e-mail with and object. I know it can be done with a macro, but i tried a few options that i read in the internet and they didn't work.&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;Regards,&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 07 Aug 2015 14:48:30 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Send-an-object-via-e-mail-with-macro/m-p/915800#M981959</guid>
      <dc:creator />
      <dc:date>2015-08-07T14:48:30Z</dc:date>
    </item>
    <item>
      <title>Re: Send an object via e-mail with macro?</title>
      <link>https://community.qlik.com/t5/QlikView/Send-an-object-via-e-mail-with-macro/m-p/915801#M981960</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi there.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Your requirement could be done much better and more professionally using NPrinting.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Otherwise you'll have to use the QlikView API to export the object to an image file and then sent that using Outlook.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Kind regards,&lt;/P&gt;&lt;P&gt;Ernesto.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 07 Aug 2015 15:02:00 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Send-an-object-via-e-mail-with-macro/m-p/915801#M981960</guid>
      <dc:creator>consenit</dc:creator>
      <dc:date>2015-08-07T15:02:00Z</dc:date>
    </item>
    <item>
      <title>Re: Send an object via e-mail with macro?</title>
      <link>https://community.qlik.com/t5/QlikView/Send-an-object-via-e-mail-with-macro/m-p/915802#M981961</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I think it can be done with macros. Am i wrong?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 07 Aug 2015 15:05:38 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Send-an-object-via-e-mail-with-macro/m-p/915802#M981961</guid>
      <dc:creator />
      <dc:date>2015-08-07T15:05:38Z</dc:date>
    </item>
    <item>
      <title>Re: Send an object via e-mail with macro?</title>
      <link>https://community.qlik.com/t5/QlikView/Send-an-object-via-e-mail-with-macro/m-p/915803#M981962</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P style="margin-bottom: .0001pt;"&gt;&lt;SPAN lang="EN-US" style="font-size: 10pt; font-family: Arial, sans-serif;"&gt;It CAN be done with macros but that's the hard way of doing things IMHO. You have to be fluent in the VBScript language and know the QlikView object model thoroughly. Besides macros are a very old feature that's being deprecated by Qlik.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN lang="EN-US" style="font-size: 10pt; font-family: Arial, sans-serif;"&gt; &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN lang="EN-US" style="font-size: 10pt; font-family: Arial, sans-serif;"&gt;Check out this for examples; there's one macro to export to Excel (exporting a chart to JPG or PNG should be done in a similar fashion) and another to send mail using Google.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN lang="EN-US" style="font-size: 10pt; font-family: Arial, sans-serif;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN lang="EN-US" style="font-size: 10pt; font-family: Arial, sans-serif;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;A href="https://luciancotea.wordpress.com/2013/07/18/qlikview-macros-useful-collection/" title="https://luciancotea.wordpress.com/2013/07/18/qlikview-macros-useful-collection/"&gt;QlikView Macros – Useful collection | Lucian Cotea&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Kind regards,&lt;/P&gt;&lt;P&gt;Ernesto.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 07 Aug 2015 15:15:51 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Send-an-object-via-e-mail-with-macro/m-p/915803#M981962</guid>
      <dc:creator>consenit</dc:creator>
      <dc:date>2015-08-07T15:15:51Z</dc:date>
    </item>
    <item>
      <title>Re: Send an object via e-mail with macro?</title>
      <link>https://community.qlik.com/t5/QlikView/Send-an-object-via-e-mail-with-macro/m-p/915804#M981964</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Ok i think it may be something like this:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;send the email with an embebed html code&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 07 Aug 2015 15:28:57 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Send-an-object-via-e-mail-with-macro/m-p/915804#M981964</guid>
      <dc:creator />
      <dc:date>2015-08-07T15:28:57Z</dc:date>
    </item>
    <item>
      <title>Re: Send an object via e-mail with macro?</title>
      <link>https://community.qlik.com/t5/QlikView/Send-an-object-via-e-mail-with-macro/m-p/915805#M981966</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;i found this &lt;/P&gt;&lt;P&gt;&lt;A href="https://luciancotea.wordpress.com/2013/07/18/qlikview-macros-useful-collection/comment-page-1/#comment-814" title="https://luciancotea.wordpress.com/2013/07/18/qlikview-macros-useful-collection/comment-page-1/#comment-814"&gt;QlikView Macros – Useful collection | Lucian Cotea&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;SUB SendMail&lt;/P&gt;&lt;P&gt;Dim objEmail&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Const cdoSendUsingPort = 2 ' Send the message using SMTP&lt;/P&gt;&lt;P&gt;Const cdoBasicAuth = 1 ' Clear-text authentication&lt;/P&gt;&lt;P&gt;Const cdoTimeout = 60 ' Timeout for SMTP in seconds&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp; mailServer = "&lt;SPAN class="skimlinks-unlinked" style="font-style: inherit; font-weight: inherit; font-size: inherit; font-family: inherit;"&gt;smtp.gmail.com&lt;/SPAN&gt;"&lt;/P&gt;&lt;P&gt;&amp;nbsp; SMTPport = 465&lt;/P&gt;&lt;P&gt;&amp;nbsp; mailusername = "MyAccount@&lt;SPAN class="skimlinks-unlinked" style="font-style: inherit; font-weight: inherit; font-size: inherit; font-family: inherit;"&gt;gmail.com&lt;/SPAN&gt;"&lt;/P&gt;&lt;P&gt;&amp;nbsp; mailpassword = "MyPassword"&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp; mailto = "destination@&lt;SPAN class="skimlinks-unlinked" style="font-style: inherit; font-weight: inherit; font-size: inherit; font-family: inherit;"&gt;company.com&lt;/SPAN&gt;" &lt;/P&gt;&lt;P&gt;&amp;nbsp; mailSubject = "Subject line" &lt;/P&gt;&lt;P&gt;&amp;nbsp; mailBody = "This is the email body" &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Set objEmail = CreateObject("CDO.Message")&lt;/P&gt;&lt;P&gt;Set objConf = objEmail.Configuration&lt;/P&gt;&lt;P&gt;Set objFlds = objConf.Fields&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;With objFlds&lt;/P&gt;&lt;P&gt;&amp;nbsp; .Item("&lt;SPAN class="skimlinks-unlinked" style="font-style: inherit; font-weight: inherit; font-size: inherit; font-family: inherit;"&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;") = cdoSendUsingPort&lt;/P&gt;&lt;P&gt;&amp;nbsp; .Item("&lt;SPAN class="skimlinks-unlinked" style="font-style: inherit; font-weight: inherit; font-size: inherit; font-family: inherit;"&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;") = mailServer&lt;/P&gt;&lt;P&gt;.Item("&lt;SPAN class="skimlinks-unlinked" style="font-style: inherit; font-weight: inherit; font-size: inherit; font-family: inherit;"&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;") = SMTPport&lt;/P&gt;&lt;P&gt;.Item("&lt;SPAN class="skimlinks-unlinked" style="font-style: inherit; font-weight: inherit; font-size: inherit; font-family: inherit;"&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;") = True&lt;/P&gt;&lt;P&gt;&amp;nbsp; .Item("&lt;SPAN class="skimlinks-unlinked" style="font-style: inherit; font-weight: inherit; font-size: inherit; font-family: inherit;"&gt;&lt;A class="jive-link-external-small" href="http://schemas.microsoft.com/cdo/configuration/smtpconnectiontimeout" rel="nofollow" target="_blank"&gt;http://schemas.microsoft.com/cdo/configuration/smtpconnectiontimeout&lt;/A&gt;&lt;/SPAN&gt;") = cdoTimeout&lt;/P&gt;&lt;P&gt;.Item("&lt;SPAN class="skimlinks-unlinked" style="font-style: inherit; font-weight: inherit; font-size: inherit; font-family: inherit;"&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;") = cdoBasicAuth&lt;/P&gt;&lt;P&gt;.Item("&lt;SPAN class="skimlinks-unlinked" style="font-style: inherit; font-weight: inherit; font-size: inherit; font-family: inherit;"&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;") = mailusername&lt;/P&gt;&lt;P&gt;.Item("&lt;SPAN class="skimlinks-unlinked" style="font-style: inherit; font-weight: inherit; font-size: inherit; font-family: inherit;"&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;") = mailpassword&lt;/P&gt;&lt;P&gt;&amp;nbsp; .Update&lt;/P&gt;&lt;P&gt;End With&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN class="skimlinks-unlinked" style="font-style: inherit; font-weight: inherit; font-size: inherit; font-family: inherit;"&gt;objEmail.To&lt;/SPAN&gt; = mailto&lt;/P&gt;&lt;P&gt;&lt;SPAN class="skimlinks-unlinked" style="font-style: inherit; font-weight: inherit; font-size: inherit; font-family: inherit;"&gt;objEmail.From&lt;/SPAN&gt; = mailusername&lt;/P&gt;&lt;P&gt;objEmail.Subject = mailSubject&lt;/P&gt;&lt;P&gt;objEmail.TextBody = mailBody&lt;/P&gt;&lt;P&gt;objEmail.AddAttachment "C:\&lt;SPAN class="skimlinks-unlinked" style="font-style: inherit; font-weight: inherit; font-size: inherit; font-family: inherit;"&gt;report.pdf&lt;/SPAN&gt;"&lt;/P&gt;&lt;P&gt;&lt;SPAN class="skimlinks-unlinked" style="font-style: inherit; font-weight: inherit; font-size: inherit; font-family: inherit;"&gt;objEmail.Send&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Set objFlds = Nothing&lt;/P&gt;&lt;P&gt;Set objConf = Nothing&lt;/P&gt;&lt;P&gt;Set objEmail = Nothing&lt;/P&gt;&lt;P&gt;END SUB&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 13 May 2016 23:59:42 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Send-an-object-via-e-mail-with-macro/m-p/915805#M981966</guid>
      <dc:creator>everest226</dc:creator>
      <dc:date>2016-05-13T23:59:42Z</dc:date>
    </item>
    <item>
      <title>Re: Send an object via e-mail with macro?</title>
      <link>https://community.qlik.com/t5/QlikView/Send-an-object-via-e-mail-with-macro/m-p/915806#M981968</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;Thank you I got that to work perfectly but the one thing I can not get to work is to add a str file to the above macro &lt;IMG src="https://community.qlik.com/legacyfs/online/emoticons/sad.png" /&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;How can I add&lt;/P&gt;&lt;P&gt;'Set the path where the excel will be saved &lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 'strDate = Year([Snapshot Date]()) &amp;amp;"-"&amp;amp; month([Snapshot Date]())&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/P&gt;&lt;P&gt;'Save the file and quit excel&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 'curWorkBook.SaveAs "C:\Graphs\Report_"&amp;amp;strDate&amp;amp;".xlsx"&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 11 Oct 2016 09:35:43 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Send-an-object-via-e-mail-with-macro/m-p/915806#M981968</guid>
      <dc:creator />
      <dc:date>2016-10-11T09:35:43Z</dc:date>
    </item>
  </channel>
</rss>

