<?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: Macro code to send email in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Macro-code-to-send-email/m-p/694398#M1056569</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Abhay,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;PFA,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks &amp;amp; Regards,&lt;/P&gt;&lt;P&gt;Harshal&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Sat, 25 Oct 2014 07:49:41 GMT</pubDate>
    <dc:creator />
    <dc:date>2014-10-25T07:49:41Z</dc:date>
    <item>
      <title>Macro code to send email</title>
      <link>https://community.qlik.com/t5/QlikView/Macro-code-to-send-email/m-p/694396#M1056567</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Dear all&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I want to send email of report in my QV application to user mail box..&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;user has provided credential like&lt;STRONG&gt; SMTP id and PORT NO&lt;/STRONG&gt;, with &lt;STRONG&gt;userid and password.&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;I need macro code which can send email of report or in a mail body..&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;can any one help??&lt;/STRONG&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 24 Oct 2014 18:11:15 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Macro-code-to-send-email/m-p/694396#M1056567</guid>
      <dc:creator>abhaysingh</dc:creator>
      <dc:date>2014-10-24T18:11:15Z</dc:date>
    </item>
    <item>
      <title>Re: Macro code to send email</title>
      <link>https://community.qlik.com/t5/QlikView/Macro-code-to-send-email/m-p/694397#M1056568</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi, use this macro to send mail&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;you have to change the smtp server with all the information you have&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;good luck&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;hope help&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 24 Oct 2014 20:43:38 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Macro-code-to-send-email/m-p/694397#M1056568</guid>
      <dc:creator>fkeuroglian</dc:creator>
      <dc:date>2014-10-24T20:43:38Z</dc:date>
    </item>
    <item>
      <title>Re: Macro code to send email</title>
      <link>https://community.qlik.com/t5/QlikView/Macro-code-to-send-email/m-p/694398#M1056569</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Abhay,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;PFA,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks &amp;amp; Regards,&lt;/P&gt;&lt;P&gt;Harshal&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 25 Oct 2014 07:49:41 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Macro-code-to-send-email/m-p/694398#M1056569</guid>
      <dc:creator />
      <dc:date>2014-10-25T07:49:41Z</dc:date>
    </item>
    <item>
      <title>Re: Macro code to send email</title>
      <link>https://community.qlik.com/t5/QlikView/Macro-code-to-send-email/m-p/694399#M1056570</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Fernando&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;thanks for your help, when I am doing it with Gmail configuration than macro code is working and email is sending,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;but when I am changing it with SMTP configuration provided by company than&amp;nbsp; it is not working...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Kindly suggest something...&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 30 Oct 2014 10:52:20 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Macro-code-to-send-email/m-p/694399#M1056570</guid>
      <dc:creator>abhaysingh</dc:creator>
      <dc:date>2014-10-30T10:52:20Z</dc:date>
    </item>
    <item>
      <title>Re: Macro code to send email</title>
      <link>https://community.qlik.com/t5/QlikView/Macro-code-to-send-email/m-p/694400#M1056571</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;PFA...&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 30 Oct 2014 11:00:47 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Macro-code-to-send-email/m-p/694400#M1056571</guid>
      <dc:creator>suniljain</dc:creator>
      <dc:date>2014-10-30T11:00:47Z</dc:date>
    </item>
    <item>
      <title>Re: Macro code to send email</title>
      <link>https://community.qlik.com/t5/QlikView/Macro-code-to-send-email/m-p/694401#M1056572</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Abhay, the problem is that your user do not have permission to acces to the smtp server&lt;/P&gt;&lt;P&gt;you have to contact to the server adm to ask for permission, that put your user credential to send mail using smtp server&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;good luck&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Fernando&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 30 Oct 2014 11:28:36 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Macro-code-to-send-email/m-p/694401#M1056572</guid>
      <dc:creator>fkeuroglian</dc:creator>
      <dc:date>2014-10-30T11:28:36Z</dc:date>
    </item>
    <item>
      <title>Re: Macro code to send email</title>
      <link>https://community.qlik.com/t5/QlikView/Macro-code-to-send-email/m-p/694402#M1056573</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Abhay,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I tried using the macro that you provided, but I have a few questions in the script. I don't know anything about VB Script or JScript. Can you help me decode it?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&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 SendReport&lt;BR /&gt; &lt;BR /&gt; ActiveDocument.Sheets("SH01").Activate 'edit the sheet ----&amp;gt; What sheet are you talking about?&lt;BR /&gt; &lt;BR /&gt; 'ActiveDocument.reload&lt;BR /&gt; &lt;BR /&gt; set objExcel=ActiveDocument.GetSheetObject("CH01") 'edit the sheet object &lt;BR /&gt; &lt;BR /&gt; strDate = Year(Date()) &amp;amp;"-"&amp;amp; month(date()) &amp;amp;"-"&amp;amp; Day(Date()) &lt;BR /&gt; &lt;BR /&gt; filepath="D:\Excel_"&amp;amp;strDate&amp;amp;".xls" 'edit the location of file ----&amp;gt; What excel file are you talking about here? &lt;BR /&gt; &lt;BR /&gt; objExcel.ExportBiff filepath&lt;BR /&gt; &lt;BR /&gt; ActiveDocument.GetApplication.Sleep 5000&lt;BR /&gt; &lt;BR /&gt; SendGMail&lt;BR /&gt; &lt;BR /&gt; ActiveDocument.Save&lt;BR /&gt; &lt;BR /&gt; set objExcel=nothing&lt;BR /&gt; set strDate=nothing&lt;BR /&gt; set filepath=nothing&lt;BR /&gt; &lt;BR /&gt; End Sub&lt;BR /&gt; &lt;BR /&gt; &lt;BR /&gt; &lt;BR /&gt; Sub SendGMail()&lt;BR /&gt; &lt;BR /&gt; &lt;BR /&gt; MsgBox "Report Exported Successfully"&lt;BR /&gt; &lt;BR /&gt; Set objMsg = CreateObject("CDO.Message")&lt;BR /&gt; Set msgConf = CreateObject("CDO.Configuration")&lt;BR /&gt; &lt;BR /&gt; &lt;BR /&gt; 'Server Configuration&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----&amp;gt;what does this number represent? &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"---&amp;gt; what do I write here?&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----&amp;gt;what does this number represent? &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----&amp;gt; what does this number represent? &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;") = "" 'type your mail id&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;") = "" 'Type your account Password&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---&amp;gt;what does this number represent? &lt;/SPAN&gt;&lt;BR /&gt; msgConf.Fields.Update&lt;BR /&gt; &lt;BR /&gt; &lt;BR /&gt; objMsg.To = "" ' type to mail id&lt;BR /&gt; objMsg.From = "" 'type from mail id&lt;BR /&gt; objMsg.Subject = "Test mail"&lt;BR /&gt; objMsg.HTMLBody = "Sales Report and Objectives"&lt;BR /&gt; objMsg.Sender = "Mr. Harshal"&lt;BR /&gt; 'objMsg.AddAttachment "D:\Excel_2014-10-2" &lt;BR /&gt; objMsg.AddAttachment filepath ' Attachement object ----&amp;gt; Do I have to attach something here?&lt;BR /&gt; &lt;BR /&gt; &lt;BR /&gt; Set objMsg.Configuration = msgConf&lt;BR /&gt; &lt;BR /&gt; objMsg.Send&lt;BR /&gt; Msgbox("Email Sent Successfully")&lt;BR /&gt; Set objMsg = nothing&lt;BR /&gt; Set msgConf = nothing&lt;BR /&gt; End Sub&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 8pt;"&gt;Thanks.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 8pt;"&gt;Regards,&lt;BR /&gt;Deepti&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 20 Mar 2015 21:36:28 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Macro-code-to-send-email/m-p/694402#M1056573</guid>
      <dc:creator>deepti_singh</dc:creator>
      <dc:date>2015-03-20T21:36:28Z</dc:date>
    </item>
  </channel>
</rss>

