<?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: how to send mail by lotus notes in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/how-to-send-mail-by-lotus-notes/m-p/1376#M794339</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;VBA Access is running successful on the same machine as QlikView?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Further there some slight differences between VBA and VBS and maybe some of your statements have not the right syntax. For example I'm not sure that your call-statements within the with-statement is really valid (I never use them in this way).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;- Marcus&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 16 Jan 2018 11:40:12 GMT</pubDate>
    <dc:creator>marcus_sommer</dc:creator>
    <dc:date>2018-01-16T11:40:12Z</dc:date>
    <item>
      <title>how to send mail by lotus notes</title>
      <link>https://community.qlik.com/t5/QlikView/how-to-send-mail-by-lotus-notes/m-p/1372#M794335</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;hi everyone,&lt;/P&gt;&lt;P&gt;i would like to send automatically an email by a Qlikwiew macro.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;i'm using following instrunction tha doesent works:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Set nSess = CreateObject("Lotus.NotesSession")&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;any suggestion? i've already setted up the system acces on the security section.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;here colpete script:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;sub SendNotesMail_OCR_peggiori_1()&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;'Dim nSess As Object 'NotesSession&lt;/P&gt;&lt;P&gt;'Dim nDir As Object 'NotesDbDirectory&lt;/P&gt;&lt;P&gt;'Dim nDb As Object 'NotesDatabase&lt;/P&gt;&lt;P&gt;'Dim nDoc As Object 'NotesDocument&lt;/P&gt;&lt;P&gt;'Dim nAtt As Object 'NotesRichTextItem&lt;/P&gt;&lt;P&gt;'Dim vToList As Variant, vCCList As Variant, vBody As Variant&lt;/P&gt;&lt;P&gt;'Dim vbAtt As VbMsgBoxResult&lt;/P&gt;&lt;P&gt;'Dim sFilPath As String&lt;/P&gt;&lt;P&gt;'Dim sPwd As String&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;'************************************************************************** *****************&lt;/P&gt;&lt;P&gt;'LISTE INDIRIZZI&lt;/P&gt;&lt;P&gt;'************************************************************************** *****************&lt;/P&gt;&lt;P&gt;ReDim vToList(0)&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;vToList(0) = "&lt;/SPAN&gt;&lt;A class="jive-link-email-small" href="mailto:f.cuniberto@arol.it" target="_blank"&gt;f.cuniberto@arol.it&lt;/A&gt;&lt;SPAN&gt;"&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;'vToList(1) = ""&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;ReDim vCCList(0)&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;vCCList(0) = "&lt;/SPAN&gt;&lt;A class="jive-link-email-small" href="mailto:f.cuniberto@arol.it" target="_blank"&gt;f.cuniberto@arol.it&lt;/A&gt;&lt;SPAN&gt;"&lt;/SPAN&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;&lt;P&gt;'OGGETTO E CORPO&lt;/P&gt;&lt;P&gt;'************************************************************************** *****************&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;oggetto_mail = "Invio Report OCR Peggiori " &amp;amp; Date&lt;/P&gt;&lt;P&gt;corpo_mail = "Invio Automatico Lista OCR Peggiori"&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;'************************************************************************** *****************&lt;/P&gt;&lt;P&gt;'ALLEGATI&lt;/P&gt;&lt;P&gt;'************************************************************************** *****************&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;sFilPath1 = "J:\Scambio\Cuniberto\Monitor\OCR_peggiori.xls"&lt;/P&gt;&lt;P&gt;'sFilPath2 = ""&lt;/P&gt;&lt;P&gt;'sFilPath3 = ""&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;&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;'To create notesession using COM objects, you can do so by using.&lt;/P&gt;&lt;P&gt;'either ProgID = Lotus.NotesSession&lt;/P&gt;&lt;P&gt;'or ClsID = {29131539-2EED-1069-BF5D-00DD011186B7}&lt;/P&gt;&lt;P&gt;'Replace ProgID by the commented string below.&lt;/P&gt;&lt;P&gt;'************************************************************************** *****************&lt;/P&gt;&lt;P&gt;Set nSess = CreateObject("Lotus.NotesSession") 'New:{29131539-2EED-1069-BF5D-00DD011186B7}&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;'************************************************************************** *****************&lt;/P&gt;&lt;P&gt;'This part initializes the session and creates a new mail document&lt;/P&gt;&lt;P&gt;'************************************************************************** *****************&lt;/P&gt;&lt;P&gt;'sPwd = Application.InputBox("Type your Lotus Notes password!", Type:=2)&lt;/P&gt;&lt;P&gt;sPwd = "kizivewo12"&lt;/P&gt;&lt;P&gt;Call nSess.Initialize(sPwd)&lt;/P&gt;&lt;P&gt;Set nDir = nSess.GetDbDirectory("")&lt;/P&gt;&lt;P&gt;Set nDb = nDir.OpenMailDatabase&lt;/P&gt;&lt;P&gt;Set nDoc = nDb.CreateDocument&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;&lt;/P&gt;&lt;P&gt;'************************************************************************** *****************&lt;/P&gt;&lt;P&gt;'If you want to send it to multiple recipients then use variant array to get the names from&lt;/P&gt;&lt;P&gt;'the specified range as below&lt;/P&gt;&lt;P&gt;'Add / Remove Comment mark from vCCList as per your needs.&lt;/P&gt;&lt;P&gt;'************************************************************************** *****************&lt;/P&gt;&lt;P&gt;With nDoc&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Set nAtt = .CreateRichTextItem("Body")&lt;/P&gt;&lt;P&gt;Call .ReplaceItemValue("Form", "Memo")&lt;/P&gt;&lt;P&gt;Call .ReplaceItemValue("Subject", oggetto_mail)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;With nAtt&lt;/P&gt;&lt;P&gt;.AppendText (corpo_mail)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;'Decide if you want to attach a file.&lt;/P&gt;&lt;P&gt;vbAtt = 6&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Select Case vbAtt&lt;/P&gt;&lt;P&gt;Case 6&lt;/P&gt;&lt;P&gt;.AddNewLine&lt;/P&gt;&lt;P&gt;.AppendText ("********************************************************************")&lt;/P&gt;&lt;P&gt;.AddNewLine&lt;/P&gt;&lt;P&gt;Call .EmbedObject(1454, "", sFilPath1) '1454 = Constant for EMBED_ATTACHMENT&lt;/P&gt;&lt;P&gt;'Call .EmbedObject(1454, "", sFilPath2) '1454 = Constant for EMBED_ATTACHMENT&lt;/P&gt;&lt;P&gt;'Call .EmbedObject(1454, "", sFilPath3) '1454 = Constant for EMBED_ATTACHMENT&lt;/P&gt;&lt;P&gt;Case 7&lt;/P&gt;&lt;P&gt;'Do Nothing&lt;/P&gt;&lt;P&gt;End Select&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;End With&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Call .ReplaceItemValue("CopyTo", vCCList)&lt;/P&gt;&lt;P&gt;Call .ReplaceItemValue("PostedDate", Now())&lt;/P&gt;&lt;P&gt;Call .Send(False, vToList)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;End With&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;End sub&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/how-to-send-mail-by-lotus-notes/m-p/1372#M794335</guid>
      <dc:creator>cuniberto</dc:creator>
      <dc:date>2020-11-25T16:16:04Z</dc:date>
    </item>
    <item>
      <title>Re: how to send mail by lotus notes</title>
      <link>https://community.qlik.com/t5/QlikView/how-to-send-mail-by-lotus-notes/m-p/1373#M794336</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;This is probably because your system doesn't have "Lotus.NotesSession"-type COM objects registered in Windows. As a result, it cannot create them.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;You may need to install a Lotus Notes client or a Notes SDK on the machine where you want to run this macro. &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 16 Jan 2018 10:56:11 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/how-to-send-mail-by-lotus-notes/m-p/1373#M794336</guid>
      <dc:creator>Peter_Cammaert</dc:creator>
      <dc:date>2018-01-16T10:56:11Z</dc:date>
    </item>
    <item>
      <title>Re: how to send mail by lotus notes</title>
      <link>https://community.qlik.com/t5/QlikView/how-to-send-mail-by-lotus-notes/m-p/1374#M794337</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;sorry, but when i run this script in VBA Access it works correctly.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 16 Jan 2018 11:04:01 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/how-to-send-mail-by-lotus-notes/m-p/1374#M794337</guid>
      <dc:creator>cuniberto</dc:creator>
      <dc:date>2018-01-16T11:04:01Z</dc:date>
    </item>
    <item>
      <title>Re: how to send mail by lotus notes</title>
      <link>https://community.qlik.com/t5/QlikView/how-to-send-mail-by-lotus-notes/m-p/1375#M794338</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;On the same platform?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;QlikView uses VBScript, not VBApplications. VBScript is a reduced version of VisualBasic, just for scripting purposes. The fact that it runs in MS-Access does &lt;EM&gt;not&lt;/EM&gt; mean it will run in QlikView. Also, this macro is embedded in a QVW document that may travel to another platform (like a server) where Lotus Notes is an unknown quantity. There are many things to take into account.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 16 Jan 2018 11:39:08 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/how-to-send-mail-by-lotus-notes/m-p/1375#M794338</guid>
      <dc:creator>Peter_Cammaert</dc:creator>
      <dc:date>2018-01-16T11:39:08Z</dc:date>
    </item>
    <item>
      <title>Re: how to send mail by lotus notes</title>
      <link>https://community.qlik.com/t5/QlikView/how-to-send-mail-by-lotus-notes/m-p/1376#M794339</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;VBA Access is running successful on the same machine as QlikView?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Further there some slight differences between VBA and VBS and maybe some of your statements have not the right syntax. For example I'm not sure that your call-statements within the with-statement is really valid (I never use them in this way).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;- Marcus&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 16 Jan 2018 11:40:12 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/how-to-send-mail-by-lotus-notes/m-p/1376#M794339</guid>
      <dc:creator>marcus_sommer</dc:creator>
      <dc:date>2018-01-16T11:40:12Z</dc:date>
    </item>
  </channel>
</rss>

