<?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: SMTP /web connector mail notification failed in Integration, Extension &amp; APIs</title>
    <link>https://community.qlik.com/t5/Integration-Extension-APIs/SMTP-web-connector-mail-notification-failed/m-p/1727143#M13009</link>
    <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;Suggest that you take a look at this blog post, I believe that this has everything that you need:&lt;/P&gt;&lt;P&gt;&lt;A href="https://www.quickintelligence.co.uk/send-data-from-qlik-load-script/" target="_blank"&gt;https://www.quickintelligence.co.uk/send-data-from-qlik-load-script/&lt;/A&gt;&lt;/P&gt;&lt;P&gt;To attach the file you will need to write it to a CSV file and then there is an extra parameter.&lt;/P&gt;&lt;P&gt;You will need to store to a library, but when you attach the csv it needs to be to a local path (and you need to ensure that the QWC config has been edited to be able to read from that location.&lt;/P&gt;&lt;P&gt;you will need something like:&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;sub Encode(vEncodeMe, vEncoded)
    let vEncoded = replace(replace(replace(replace(replace(replace(replace(replace(replace(vEncodeMe, ':', '%3a'), '/', '%2f'), '?', '%3f'), '=', '%3d'), '\', '%5c'), '@', '%40'), ' ', '+'), '&amp;lt;', '%lt'), '&amp;gt;', '%gt');
end sub

let vOutput = 'lib://SentAlerts/';
let vFolder = 'C:\Documents\SenseAlerts\Sent\';
let vFilename = 'Attachment.csv';

let vAtt1 = '$(vFolder)$(vFilename)';

call Encode(vAtt1, vAtt1Enc);

STORE Data INTO [$(vOutput)$(vFilename)];&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Then added to your parameters in the WITH CONNECTION:&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;QUERY "fileAttachment1" "$(vAtt1Enc)",&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Actually, you may not need to do the encoding providing the attachment filename in the WITH CONNECTION, I always build out a URL with all parameters and then just use that in the WITH CONNECTION.&lt;/P&gt;&lt;P&gt;I've expanded on what I have put in my blog post to create a tool which automates alerts in Sense. It allows you to query various sources and check results against a threshold before the tool decides whether an alert needs to be sent. Each alert condition is configured in a spreadsheet, along with where it needs to be sent to.&lt;/P&gt;&lt;P&gt;A lot of the code I create like this I make available on the Community (see&amp;nbsp;&lt;A href="https://www.quickintelligence.co.uk/examples/" target="_blank"&gt;https://www.quickintelligence.co.uk/examples/&lt;/A&gt;) but I'm not sure I will be doing that with the alerting tool. If you are interested in using it please direct message me. Presently it is only available as a perk of being one of my Sense customers.&lt;/P&gt;&lt;P&gt;Hope that helps.&lt;/P&gt;&lt;P&gt;Steve&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Sun, 12 Jul 2020 20:43:22 GMT</pubDate>
    <dc:creator>stevedark</dc:creator>
    <dc:date>2020-07-12T20:43:22Z</dc:date>
    <item>
      <title>SMTP /web connector mail notification failed</title>
      <link>https://community.qlik.com/t5/Integration-Extension-APIs/SMTP-web-connector-mail-notification-failed/m-p/1726997#M13003</link>
      <description>&lt;P&gt;Hi Team,&lt;/P&gt;&lt;P&gt;I'm trying to load data and generating some flags according to 2 rules. And when the data gets loaded, it should mail the results based on the condition.&lt;/P&gt;&lt;P&gt;I have installed&amp;nbsp;QlikSense SMTP connector and successfully added to my application. Currently, it is sending a mail whenever data gets loaded. However, my requirement is to send mail when a particular rule(s) gets loaded &lt;STRONG&gt;along with the Data&lt;/STRONG&gt;.&lt;/P&gt;&lt;P&gt;*******************Data Load*******************&lt;/P&gt;&lt;P&gt;Unqualify *;&lt;/P&gt;&lt;P&gt;[Sheet1]:&lt;BR /&gt;LOAD&lt;BR /&gt;[CompanyID],&lt;BR /&gt;[Year],&lt;BR /&gt;[DataPointID],&lt;BR /&gt;[Value],&lt;BR /&gt;[Flag]&lt;BR /&gt;FROM [lib://Automation/Book1.xlsx]&lt;BR /&gt;(ooxml, embedded labels, table is Sheet1);&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;*******************//Rule - 1*******************&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;NoConcatenate&lt;/P&gt;&lt;P&gt;DecimalFlag:&lt;/P&gt;&lt;P&gt;Load *,&lt;/P&gt;&lt;P&gt;if(Frac(Value)&amp;gt;0,'WithDecimal','WithoutDecimal') as Decimal&lt;/P&gt;&lt;P&gt;Resident [Sheet1]&lt;/P&gt;&lt;P&gt;where match (DataPointID,'430');&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;*******************//Rule - 2*******************&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;NoConcatenate&lt;/P&gt;&lt;P&gt;Compare:&lt;/P&gt;&lt;P&gt;LOAD CompanyID, [Year], Value As Value1&lt;BR /&gt;Resident [Sheet1]&lt;BR /&gt;Where DataPointID=431;&lt;/P&gt;&lt;P&gt;Left Join(Compare)&lt;BR /&gt;LOAD CompanyID, [Year], Value As Value2&lt;BR /&gt;Resident [Sheet1]&lt;BR /&gt;Where DataPointID = 432;&lt;/P&gt;&lt;P&gt;Left Join([Sheet1])&lt;BR /&gt;LOAD CompanyID, If(Value1&amp;lt;Value2, 'Yes','No') As Compare_Flag&lt;BR /&gt;Resident Compare;&lt;/P&gt;&lt;P&gt;Drop Table Compare;&lt;/P&gt;&lt;P&gt;Note: I'm able to load the data and run the rules. I need to send the data to a mail.&lt;/P&gt;&lt;P&gt;My data looks:&amp;nbsp;&lt;/P&gt;&lt;DIV class="mceNonEditable lia-copypaste-placeholder"&gt;&amp;nbsp;&lt;/DIV&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-left" image-alt="Untitled.png" style="width: 292px;"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/37312i17769FA6512EC542/image-dimensions/292x241?v=v2" width="292" height="241" role="button" title="Untitled.png" alt="Untitled.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I'm able to send a notification but I want to send data once the rules are loaded&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-left" image-alt="Untitled2.png" style="width: 531px;"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/37313i995EF36DAB369A96/image-dimensions/531x162?v=v2" width="531" height="162" role="button" title="Untitled2.png" alt="Untitled2.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;How do I send a mail once the rules are loaded &lt;STRONG&gt;along with the Data&lt;/STRONG&gt;?&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Sat, 16 Nov 2024 18:23:10 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Integration-Extension-APIs/SMTP-web-connector-mail-notification-failed/m-p/1726997#M13003</guid>
      <dc:creator>harsha</dc:creator>
      <dc:date>2024-11-16T18:23:10Z</dc:date>
    </item>
    <item>
      <title>Re: SMTP /web connector mail notification failed</title>
      <link>https://community.qlik.com/t5/Integration-Extension-APIs/SMTP-web-connector-mail-notification-failed/m-p/1727130#M13008</link>
      <description>&lt;P&gt;Can anyone help me out?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;a href="https://community.qlik.com/t5/user/viewprofilepage/user-id/6748"&gt;@stevedark&lt;/a&gt;&amp;nbsp;could u look pls?&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Sun, 12 Jul 2020 19:04:02 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Integration-Extension-APIs/SMTP-web-connector-mail-notification-failed/m-p/1727130#M13008</guid>
      <dc:creator>harsha</dc:creator>
      <dc:date>2020-07-12T19:04:02Z</dc:date>
    </item>
    <item>
      <title>Re: SMTP /web connector mail notification failed</title>
      <link>https://community.qlik.com/t5/Integration-Extension-APIs/SMTP-web-connector-mail-notification-failed/m-p/1727143#M13009</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;Suggest that you take a look at this blog post, I believe that this has everything that you need:&lt;/P&gt;&lt;P&gt;&lt;A href="https://www.quickintelligence.co.uk/send-data-from-qlik-load-script/" target="_blank"&gt;https://www.quickintelligence.co.uk/send-data-from-qlik-load-script/&lt;/A&gt;&lt;/P&gt;&lt;P&gt;To attach the file you will need to write it to a CSV file and then there is an extra parameter.&lt;/P&gt;&lt;P&gt;You will need to store to a library, but when you attach the csv it needs to be to a local path (and you need to ensure that the QWC config has been edited to be able to read from that location.&lt;/P&gt;&lt;P&gt;you will need something like:&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;sub Encode(vEncodeMe, vEncoded)
    let vEncoded = replace(replace(replace(replace(replace(replace(replace(replace(replace(vEncodeMe, ':', '%3a'), '/', '%2f'), '?', '%3f'), '=', '%3d'), '\', '%5c'), '@', '%40'), ' ', '+'), '&amp;lt;', '%lt'), '&amp;gt;', '%gt');
end sub

let vOutput = 'lib://SentAlerts/';
let vFolder = 'C:\Documents\SenseAlerts\Sent\';
let vFilename = 'Attachment.csv';

let vAtt1 = '$(vFolder)$(vFilename)';

call Encode(vAtt1, vAtt1Enc);

STORE Data INTO [$(vOutput)$(vFilename)];&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Then added to your parameters in the WITH CONNECTION:&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;QUERY "fileAttachment1" "$(vAtt1Enc)",&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Actually, you may not need to do the encoding providing the attachment filename in the WITH CONNECTION, I always build out a URL with all parameters and then just use that in the WITH CONNECTION.&lt;/P&gt;&lt;P&gt;I've expanded on what I have put in my blog post to create a tool which automates alerts in Sense. It allows you to query various sources and check results against a threshold before the tool decides whether an alert needs to be sent. Each alert condition is configured in a spreadsheet, along with where it needs to be sent to.&lt;/P&gt;&lt;P&gt;A lot of the code I create like this I make available on the Community (see&amp;nbsp;&lt;A href="https://www.quickintelligence.co.uk/examples/" target="_blank"&gt;https://www.quickintelligence.co.uk/examples/&lt;/A&gt;) but I'm not sure I will be doing that with the alerting tool. If you are interested in using it please direct message me. Presently it is only available as a perk of being one of my Sense customers.&lt;/P&gt;&lt;P&gt;Hope that helps.&lt;/P&gt;&lt;P&gt;Steve&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Sun, 12 Jul 2020 20:43:22 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Integration-Extension-APIs/SMTP-web-connector-mail-notification-failed/m-p/1727143#M13009</guid>
      <dc:creator>stevedark</dc:creator>
      <dc:date>2020-07-12T20:43:22Z</dc:date>
    </item>
    <item>
      <title>Re: SMTP /web connector mail notification failed</title>
      <link>https://community.qlik.com/t5/Integration-Extension-APIs/SMTP-web-connector-mail-notification-failed/m-p/1868592#M16001</link>
      <description>&lt;P&gt;Hi Harsha,&lt;/P&gt;
&lt;P&gt;I'm getting HTTP Internal server error if I try to override query parameters. Any suggestion on this ?&lt;/P&gt;</description>
      <pubDate>Thu, 09 Dec 2021 11:51:57 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Integration-Extension-APIs/SMTP-web-connector-mail-notification-failed/m-p/1868592#M16001</guid>
      <dc:creator>AV1</dc:creator>
      <dc:date>2021-12-09T11:51:57Z</dc:date>
    </item>
    <item>
      <title>Re: SMTP /web connector mail notification failed</title>
      <link>https://community.qlik.com/t5/Integration-Extension-APIs/SMTP-web-connector-mail-notification-failed/m-p/1969108#M17194</link>
      <description>&lt;P&gt;Dear All&lt;BR /&gt;&lt;BR /&gt;Can you Please help me i this&amp;nbsp;&lt;BR /&gt;I am trying to get more then one task failure notification but i am getting only one can you pleas help me to get more then one task failure&lt;BR /&gt;getting this now&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Jaya15_0-1660649950520.png" style="width: 400px;"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/86781i1FDB934111605270/image-size/medium?v=v2&amp;amp;px=400" role="button" title="Jaya15_0-1660649950520.png" alt="Jaya15_0-1660649950520.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;want to get the 2nd table as well&lt;BR /&gt;using below code&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Jaya15_1-1660649950560.png" style="width: 400px;"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/86782i704AE38C8DC7740B/image-size/medium?v=v2&amp;amp;px=400" role="button" title="Jaya15_1-1660649950560.png" alt="Jaya15_1-1660649950560.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Jaya15_2-1660649950537.png" style="width: 400px;"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/86783i4D15B0E4C8075781/image-size/medium?v=v2&amp;amp;px=400" role="button" title="Jaya15_2-1660649950537.png" alt="Jaya15_2-1660649950537.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Please help&lt;BR /&gt;&lt;BR /&gt;Thanks&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Jaya Sharma&lt;/P&gt;</description>
      <pubDate>Tue, 16 Aug 2022 11:39:23 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Integration-Extension-APIs/SMTP-web-connector-mail-notification-failed/m-p/1969108#M17194</guid>
      <dc:creator>Jaya15</dc:creator>
      <dc:date>2022-08-16T11:39:23Z</dc:date>
    </item>
  </channel>
</rss>

