<?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 Qlik view send mail problam in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Qlik-view-send-mail-problam/m-p/163792#M36737</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;Kindly help me very urgent basic&lt;/P&gt;&lt;P&gt;we have integrate qlik view send mail in our application but we have facing some problem(Error)&lt;/P&gt;&lt;P&gt;My code are&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P style="font-weight: bold"&gt;function sendMailTest()&lt;BR /&gt;&lt;BR /&gt; Dim objEmail&lt;BR /&gt;&lt;BR /&gt; Const cdoSendUsingPort = 2 ' Send the message using SMTP&lt;BR /&gt;&lt;BR /&gt; Const cdoAnonymous = 0 'Do not authenticate&lt;BR /&gt; Const cdoBasic = 1 'basic (clear-text) authentication&lt;BR /&gt; Const cdoNTLM = 2 'NTLM&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt; SMTPServer = getVariable("SMTPServer")&lt;BR /&gt; Const SMTPPort = 25 ' Port number for SMTP&lt;BR /&gt; Const SMTPTimeout = 60 ' Timeout for SMTP in seconds&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt; 'Sending mail&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;BR /&gt; ' SMTP server details&lt;BR /&gt; .Item("http://schemas.microsoft.com/cdo/configuration/sendusing") = cdoSendUsingPort&lt;BR /&gt; .Item("http://schemas.microsoft.com/cdo/configuration/smtpserver") = SMTPServer&lt;BR /&gt; .Item("http://schemas.microsoft.com/cdo/configuration/smtpauthenticate") = cdoAnonymous&lt;BR /&gt; .Item("http://schemas.microsoft.com/cdo/configuration/smtpserverport") = SMTPPort&lt;BR /&gt; .Item("http://schemas.microsoft.com/cdo/configuration/smtpusessl") = False&lt;BR /&gt; .Item("http://schemas.microsoft.com/cdo/configuration/smtpconnectiontimeout") = SMTPTimeout&lt;BR /&gt; .Update&lt;BR /&gt; '---------------------------------------------------------------------&lt;BR /&gt; End With&lt;BR /&gt;&lt;BR /&gt; objEmail.To = getVariable("EmailTo") 'Email Recipient&lt;BR /&gt; objEmail.From = getVariable("EmailFrom") 'Email Sender&lt;BR /&gt; objEmail.Subject = getVariable("EmailSubject") ' Subject&lt;BR /&gt; objEmail.TextBody = getVariable("EmailBody") 'Text Body&lt;BR /&gt; objEmail.AddAttachment getVariable("Attachement") ' Attachement&lt;BR /&gt;&lt;BR /&gt; objEmail.Send ' (We are facing problem here i think )&lt;BR /&gt;&lt;BR /&gt; Set objFlds = Nothing&lt;BR /&gt; Set objConf = Nothing&lt;BR /&gt; Set objEmail = Nothing&lt;BR /&gt;&lt;BR /&gt; msgbox ("Test Mail Sent")&lt;BR /&gt;&lt;BR /&gt; end function&lt;BR /&gt;&lt;BR /&gt;function getVariable(varName)&lt;BR /&gt; set v = ActiveDocument.Variables(varName)&lt;BR /&gt; getVariable = v.GetContent.String&lt;BR /&gt;end function&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Plaese check my code&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;Ashish Kumar&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 25 May 2010 14:35:22 GMT</pubDate>
    <dc:creator />
    <dc:date>2010-05-25T14:35:22Z</dc:date>
    <item>
      <title>Qlik view send mail problam</title>
      <link>https://community.qlik.com/t5/QlikView/Qlik-view-send-mail-problam/m-p/163792#M36737</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;Kindly help me very urgent basic&lt;/P&gt;&lt;P&gt;we have integrate qlik view send mail in our application but we have facing some problem(Error)&lt;/P&gt;&lt;P&gt;My code are&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P style="font-weight: bold"&gt;function sendMailTest()&lt;BR /&gt;&lt;BR /&gt; Dim objEmail&lt;BR /&gt;&lt;BR /&gt; Const cdoSendUsingPort = 2 ' Send the message using SMTP&lt;BR /&gt;&lt;BR /&gt; Const cdoAnonymous = 0 'Do not authenticate&lt;BR /&gt; Const cdoBasic = 1 'basic (clear-text) authentication&lt;BR /&gt; Const cdoNTLM = 2 'NTLM&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt; SMTPServer = getVariable("SMTPServer")&lt;BR /&gt; Const SMTPPort = 25 ' Port number for SMTP&lt;BR /&gt; Const SMTPTimeout = 60 ' Timeout for SMTP in seconds&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt; 'Sending mail&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;BR /&gt; ' SMTP server details&lt;BR /&gt; .Item("http://schemas.microsoft.com/cdo/configuration/sendusing") = cdoSendUsingPort&lt;BR /&gt; .Item("http://schemas.microsoft.com/cdo/configuration/smtpserver") = SMTPServer&lt;BR /&gt; .Item("http://schemas.microsoft.com/cdo/configuration/smtpauthenticate") = cdoAnonymous&lt;BR /&gt; .Item("http://schemas.microsoft.com/cdo/configuration/smtpserverport") = SMTPPort&lt;BR /&gt; .Item("http://schemas.microsoft.com/cdo/configuration/smtpusessl") = False&lt;BR /&gt; .Item("http://schemas.microsoft.com/cdo/configuration/smtpconnectiontimeout") = SMTPTimeout&lt;BR /&gt; .Update&lt;BR /&gt; '---------------------------------------------------------------------&lt;BR /&gt; End With&lt;BR /&gt;&lt;BR /&gt; objEmail.To = getVariable("EmailTo") 'Email Recipient&lt;BR /&gt; objEmail.From = getVariable("EmailFrom") 'Email Sender&lt;BR /&gt; objEmail.Subject = getVariable("EmailSubject") ' Subject&lt;BR /&gt; objEmail.TextBody = getVariable("EmailBody") 'Text Body&lt;BR /&gt; objEmail.AddAttachment getVariable("Attachement") ' Attachement&lt;BR /&gt;&lt;BR /&gt; objEmail.Send ' (We are facing problem here i think )&lt;BR /&gt;&lt;BR /&gt; Set objFlds = Nothing&lt;BR /&gt; Set objConf = Nothing&lt;BR /&gt; Set objEmail = Nothing&lt;BR /&gt;&lt;BR /&gt; msgbox ("Test Mail Sent")&lt;BR /&gt;&lt;BR /&gt; end function&lt;BR /&gt;&lt;BR /&gt;function getVariable(varName)&lt;BR /&gt; set v = ActiveDocument.Variables(varName)&lt;BR /&gt; getVariable = v.GetContent.String&lt;BR /&gt;end function&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Plaese check my code&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;Ashish Kumar&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 25 May 2010 14:35:22 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Qlik-view-send-mail-problam/m-p/163792#M36737</guid>
      <dc:creator />
      <dc:date>2010-05-25T14:35:22Z</dc:date>
    </item>
  </channel>
</rss>

