<?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: Sending emails from Qlikview in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Sending-emails-from-Qlikview/m-p/1440209#M798031</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Edwards,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Please refer the below thread to configure users in qvw.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;A href="https://community.qlik.com/docs/DOC-17100"&gt;QlikView Scheduled &amp;amp;amp; Automated Reports – Sending Excel via Email&lt;/A&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 07 Dec 2017 08:59:28 GMT</pubDate>
    <dc:creator>krishna20</dc:creator>
    <dc:date>2017-12-07T08:59:28Z</dc:date>
    <item>
      <title>Sending emails from Qlikview</title>
      <link>https://community.qlik.com/t5/QlikView/Sending-emails-from-Qlikview/m-p/1440208#M798030</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Evening all&lt;/P&gt;&lt;P&gt;I was hoping that some of the more tech savvy members would be able to assist or point me in the right direction.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I want to be able to send an email with a .pdf report attached to a selection of users on a daily basis. I have developed the Qlikview app that writes out the .pdf and can mail the report from my desktop version when not linked to the company network. I got the code from the forum. It uses the gmail smtp server to send the mail.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Once I try to run Qlikview from our warehouse server it returns the message 'The transport failed to connect to the server'. When running on the company server I use the company SMTP server and not the gmail server.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;What is strange is that I can send an email using Powershell. I use the same parameters in my Qlikview model as Powershell. I have worked with our sever engineer to try to get it to work without success. It seems to me to be a setting on the server/virus protection/mail server. In order to get the mail to send they setup the mail server to allow it to relay messages. The code below is what I use.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 8pt;"&gt;SUB SendMail&lt;BR /&gt; Dim objEmail&lt;BR /&gt; Const cdoSendUsingPort = 2 ' Send the message using SMTP &lt;BR /&gt; Const cdoBasicAuth = 1 ' Clear-text authentication Const &lt;BR /&gt; cdoTimeout = 60 ' Timeout for SMTP in seconds&amp;nbsp; &lt;BR /&gt; mailServer = "relay.enterpriseoutsourcing.co.za" &lt;BR /&gt; SMTPport = 25&lt;BR /&gt;&lt;SPAN&gt; mailusername = "&lt;/SPAN&gt;&lt;A class="jive-link-email-small" href="mailto:Qlikview@universal.co.za" target="_blank"&gt;Qlikview@universal.co.za&lt;/A&gt;&lt;SPAN&gt;" &lt;/SPAN&gt;&lt;BR /&gt; mailpassword = ""&lt;BR /&gt;&lt;SPAN&gt; mailto = "&lt;/SPAN&gt;&lt;A class="jive-link-email-small" href="mailto:braham@tiscali.co.za" target="_blank"&gt;braham@tiscali.co.za&lt;/A&gt;&lt;SPAN&gt;; &lt;/SPAN&gt;&lt;A class="jive-link-email-small" href="mailto:Braham.Edwards@universal.co.za" target="_blank"&gt;Braham.Edwards@universal.co.za&lt;/A&gt;&lt;SPAN&gt;" &lt;/SPAN&gt;&lt;BR /&gt; mailSubject = "Report 01" &lt;BR /&gt; mailBody = "This is the email body"&amp;nbsp; &lt;BR /&gt; Set objEmail = CreateObject("CDO.Message") &lt;BR /&gt; Set objConf = objEmail.Configuration &lt;BR /&gt; Set objFlds = objConf.Fields&lt;BR /&gt; With objFlds &lt;BR /&gt;&lt;SPAN&gt; .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;") = cdoSendUsingPort &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt; .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;") = mailServer &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt; .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;") = SMTPport &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt; .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;") = True &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt; .Item("&lt;/SPAN&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;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt; .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;") = cdoBasicAuth &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt; .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;") = mailusername &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt; .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;") = mailpassword &lt;/SPAN&gt;&lt;BR /&gt; .Update &lt;BR /&gt; End With&lt;BR /&gt; objEmail.To = mailto &lt;BR /&gt; objEmail.From = mailusername &lt;BR /&gt; objEmail.Subject = mailSubject &lt;BR /&gt; objEmail.TextBody = mailBody &lt;BR /&gt; objEmail.AddAttachment "C:\QlikView Printing.pdf" &lt;BR /&gt; objEmail.Send&amp;nbsp; &lt;BR /&gt; Set objFlds = Nothing &lt;BR /&gt; Set objConf = Nothing &lt;BR /&gt; Set objEmail = Nothing &lt;BR /&gt; &lt;BR /&gt; &lt;/SPAN&gt;&lt;STRONG style=": ; color: #0000ff; font-size: 8pt;"&gt;END&lt;/STRONG&gt;&lt;SPAN style="font-size: 8pt;"&gt; &lt;/SPAN&gt;&lt;STRONG style=": ; color: #0000ff; font-size: 8pt;"&gt;SUB &lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;The sending fails on the objEmail.Send statement&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Some input would be appreciated, especially if some advise on possible server settings that need to be enabled.&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Regards&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Braham Edwards&lt;/STRONG&gt;&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/Sending-emails-from-Qlikview/m-p/1440208#M798030</guid>
      <dc:creator>braham</dc:creator>
      <dc:date>2020-11-25T16:16:04Z</dc:date>
    </item>
    <item>
      <title>Re: Sending emails from Qlikview</title>
      <link>https://community.qlik.com/t5/QlikView/Sending-emails-from-Qlikview/m-p/1440209#M798031</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Edwards,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Please refer the below thread to configure users in qvw.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;A href="https://community.qlik.com/docs/DOC-17100"&gt;QlikView Scheduled &amp;amp;amp; Automated Reports – Sending Excel via Email&lt;/A&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 07 Dec 2017 08:59:28 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Sending-emails-from-Qlikview/m-p/1440209#M798031</guid>
      <dc:creator>krishna20</dc:creator>
      <dc:date>2017-12-07T08:59:28Z</dc:date>
    </item>
    <item>
      <title>Re: Sending emails from Qlikview</title>
      <link>https://community.qlik.com/t5/QlikView/Sending-emails-from-Qlikview/m-p/1440210#M798032</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Kalyan&lt;/P&gt;&lt;P&gt;I did look at the post you mentioned, but it is sent from a gmail SMTP server. My script works from a gmail account, but not from our exchange server.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Braham&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 07 Dec 2017 19:11:34 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Sending-emails-from-Qlikview/m-p/1440210#M798032</guid>
      <dc:creator>braham</dc:creator>
      <dc:date>2017-12-07T19:11:34Z</dc:date>
    </item>
  </channel>
</rss>

