<?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 Email to More than Two Recipients Using Qlikview Macros through Outlook in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Sending-Email-to-More-than-Two-Recipients-Using-Qlikview-Macros/m-p/2444416#M1231674</link>
    <description>&lt;P&gt;Such behaviour might be caused by any configurations and/or security settings which may enforce a resolving of the recipients against any lists/contacts or not allowing more as one domain at a time or similar stuff - any maybe not only directly from Outlook else also from the related Exchange server.&lt;/P&gt;
&lt;P&gt;Of course there are again a lot of hints to this kind of issue:&amp;nbsp;&lt;A href="https://www.google.com/search?q=-2147467269+-+Outlook+does+not+recognize+one+or+more+names#ip=1" target="_blank"&gt;-2147467269 - Outlook does not recognize one or more names&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;If you couldn't practically solve this you may to consider to skip the approach with n recipients within a single mail and looping through the list of recipients and each one gets it own mail.&lt;/P&gt;
&lt;P&gt;Beside of all the above you may need to get in touch with your IT department because there may various rules in place to restrict the number of recipients and mails per time and further conditions.&lt;/P&gt;</description>
    <pubDate>Wed, 24 Apr 2024 15:01:27 GMT</pubDate>
    <dc:creator>marcus_sommer</dc:creator>
    <dc:date>2024-04-24T15:01:27Z</dc:date>
    <item>
      <title>Sending Email to More than Two Recipients Using Qlikview Macros through Outlook</title>
      <link>https://community.qlik.com/t5/QlikView/Sending-Email-to-More-than-Two-Recipients-Using-Qlikview-Macros/m-p/2444049#M1231660</link>
      <description>&lt;P&gt;Dear All,&lt;/P&gt;
&lt;P&gt;Anytime I am sending emails to more than two recipients, the macros would give this error "that "Outlook does not recognize one or more names. " and it would highlight objMail.Send in my code. here is my&amp;nbsp; code:&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Sub mSendMail(pdfFilePath)&lt;BR /&gt;Dim objOutlk &lt;BR /&gt;Dim objMail &lt;BR /&gt;Const olMailItem = 0&lt;BR /&gt;&lt;BR /&gt;' Check if Outlook is already running&lt;BR /&gt;On Error Resume Next&lt;BR /&gt;Set objOutlk = GetObject(, "Outlook.Application")&lt;BR /&gt;On Error GoTo 0&lt;BR /&gt;&lt;BR /&gt;' If Outlook is not running, start it&lt;BR /&gt;If (objOutlk = "") Then&lt;BR /&gt;StartOutlook&lt;BR /&gt;' Wait for 5 seconds for Outlook to start&lt;BR /&gt;ActiveDocument.GetApplication.Sleep 5000&lt;BR /&gt;&lt;BR /&gt;' Create a new instance of Outlook application&lt;BR /&gt;Set objOutlk = CreateObject("Outlook.Application")&lt;BR /&gt;End If&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;' Create a new mail item&lt;BR /&gt;Set objMail = objOutlk.createitem(olMailItem)&lt;BR /&gt;&lt;BR /&gt;' Recipient's email address&lt;BR /&gt;objMail.To = "example@yahoo.com"&lt;/P&gt;
&lt;P&gt;objMail.Cc = "example2@gmail.com"&lt;BR /&gt;&lt;BR /&gt;' Subject of the email&lt;BR /&gt;objMail.Subject = "Testing " &amp;amp; Date()&lt;BR /&gt;&lt;BR /&gt;' Body of the email&lt;BR /&gt;objMail.HTMLBody = "Body of the email, This is an automatic generated email from QlikView."&lt;BR /&gt;&lt;BR /&gt;' Add attachment (use the generated PDF file)&lt;BR /&gt;objMail.Attachments.Add pdfFilePath&lt;BR /&gt;&lt;BR /&gt;' Send the email&lt;BR /&gt;objMail.Send&lt;BR /&gt;&lt;BR /&gt;' Release resources&lt;BR /&gt;Set objMail = Nothing&lt;BR /&gt;Set objOutlk = Nothing&lt;BR /&gt;End Sub&lt;/P&gt;
&lt;P&gt;if I add BCc to the&amp;nbsp;' Recipient's email address it would complain :&amp;nbsp;&lt;/P&gt;
&lt;P&gt;' Recipient's email address&lt;BR /&gt;objMail.To = "example@yahoo.com"&lt;/P&gt;
&lt;P&gt;objMail.Cc = "example2@gmail.com"&lt;/P&gt;
&lt;P&gt;objMail.BCc = "example3@abc.com" or I added two email to the cc like this&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Recipient's email address&lt;BR /&gt;objMail.To = "example@yahoo.com"&lt;/P&gt;
&lt;P&gt;objMail.Cc = "example2@gmail.com, &lt;A href="mailto:example7@abc.com&amp;quot;" target="_blank"&gt;example7@abc.com"&lt;/A&gt;&amp;nbsp;it would say&amp;nbsp;&amp;nbsp;"Outlook does not recognize one or more names. " and it would highlight objMail.Send in my code. here is my&amp;nbsp; code,&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Please, what can I do to be sending emails to more than 10recipients at the same time .&lt;/P&gt;
&lt;P&gt;Thanks&lt;/P&gt;</description>
      <pubDate>Mon, 26 Jan 2026 16:26:21 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Sending-Email-to-More-than-Two-Recipients-Using-Qlikview-Macros/m-p/2444049#M1231660</guid>
      <dc:creator>olaoyesunday1</dc:creator>
      <dc:date>2026-01-26T16:26:21Z</dc:date>
    </item>
    <item>
      <title>Re: Sending Email to More than Two Recipients Using Qlikview Macros through Outlook</title>
      <link>https://community.qlik.com/t5/QlikView/Sending-Email-to-More-than-Two-Recipients-Using-Qlikview-Macros/m-p/2444182#M1231663</link>
      <description>&lt;P&gt;Hello&amp;nbsp;&lt;a href="https://community.qlik.com/t5/user/viewprofilepage/user-id/261763"&gt;@olaoyesunday1&lt;/a&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;your seperator "," is wrong it should be ";". See a few examples below.&lt;/P&gt;
&lt;P&gt;&lt;A href="https://learn.microsoft.com/en-us/previous-versions/office/developer/office-2003/aa679667(v=office.11)" target="_blank"&gt;https://learn.microsoft.com/en-us/previous-versions/office/developer/office-2003/aa679667(v=office.11)&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;&lt;A href="https://learn.microsoft.com/en-us/office/vba/excel/Concepts/Working-with-Other-Applications/sending-email-to-a-list-of-recipients-using-excel-and-outlook" target="_blank"&gt;https://learn.microsoft.com/en-us/office/vba/excel/Concepts/Working-with-Other-Applications/sending-email-to-a-list-of-recipients-using-excel-and-outlook&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;&lt;A href="https://stackoverflow.com/questions/38950369/adding-multiple-cc-in-outlook-mail" target="_blank"&gt;https://stackoverflow.com/questions/38950369/adding-multiple-cc-in-outlook-mail&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;best regards&lt;/P&gt;
&lt;P&gt;Sebastian&lt;/P&gt;</description>
      <pubDate>Wed, 24 Apr 2024 06:42:47 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Sending-Email-to-More-than-Two-Recipients-Using-Qlikview-Macros/m-p/2444182#M1231663</guid>
      <dc:creator>Sebastian_Linser</dc:creator>
      <dc:date>2024-04-24T06:42:47Z</dc:date>
    </item>
    <item>
      <title>Re: Sending Email to More than Two Recipients Using Qlikview Macros through Outlook</title>
      <link>https://community.qlik.com/t5/QlikView/Sending-Email-to-More-than-Two-Recipients-Using-Qlikview-Macros/m-p/2444231#M1231666</link>
      <description>&lt;P&gt;Beside using n single recipients you may also use mailing lists.&lt;/P&gt;
&lt;P&gt;Further useful might be to load the recipients from external sources which are then assigned to variables or used in table-boxes which are read from the macro.&lt;/P&gt;</description>
      <pubDate>Wed, 24 Apr 2024 08:35:21 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Sending-Email-to-More-than-Two-Recipients-Using-Qlikview-Macros/m-p/2444231#M1231666</guid>
      <dc:creator>marcus_sommer</dc:creator>
      <dc:date>2024-04-24T08:35:21Z</dc:date>
    </item>
    <item>
      <title>Re: Sending Email to More than Two Recipients Using Qlikview Macros through Outlook</title>
      <link>https://community.qlik.com/t5/QlikView/Sending-Email-to-More-than-Two-Recipients-Using-Qlikview-Macros/m-p/2444264#M1231668</link>
      <description>&lt;P&gt;&lt;a href="https://community.qlik.com/t5/user/viewprofilepage/user-id/19162"&gt;@Sebastian_Linser&lt;/a&gt;&amp;nbsp;and&amp;nbsp;&lt;a href="https://community.qlik.com/t5/user/viewprofilepage/user-id/28038"&gt;@marcus_sommer&lt;/a&gt;&amp;nbsp; thanks very much , but when I used the right separator ";"&amp;nbsp; in my code like this&amp;nbsp;' Recipient's email address&lt;BR /&gt;objMail.To = "olaolu567@yahoo.com"&lt;BR /&gt;objMail.Cc = "codedevelopment72@gmail;tolu@smatdata.com"&amp;nbsp; it was still saying the same error: "Outlook does not recognize one or more names. " and highlighting objMail.Send.&lt;/P&gt;</description>
      <pubDate>Wed, 24 Apr 2024 09:45:45 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Sending-Email-to-More-than-Two-Recipients-Using-Qlikview-Macros/m-p/2444264#M1231668</guid>
      <dc:creator>olaoyesunday1</dc:creator>
      <dc:date>2024-04-24T09:45:45Z</dc:date>
    </item>
    <item>
      <title>Re: Sending Email to More than Two Recipients Using Qlikview Macros through Outlook</title>
      <link>https://community.qlik.com/t5/QlikView/Sending-Email-to-More-than-Two-Recipients-Using-Qlikview-Macros/m-p/2444292#M1231670</link>
      <description>&lt;P&gt;Be careful by relying the cursor-position or highlighting anything as the cause of the error. Such approach will work well within VBA but not mandatory within the modul-editor of the QlikView VBS implementation.&lt;/P&gt;
&lt;P&gt;A good workaround would be to use some msgbox within the code - just with values like 1, 2, 3 to see until which point the code runs and in the next check you may move the msgbox a bit up/down until you could surely identify the error-line. By a bit more complex code you may also track the various variables, paths, iterations and so on with the msgbox.&lt;/P&gt;
&lt;P&gt;If the cause behind the error is further unclear you may add before the line an:&lt;/P&gt;
&lt;P&gt;On Error Resume Next&lt;/P&gt;
&lt;P&gt;and afterwards a:&lt;/P&gt;
&lt;P&gt;msgbox err.number &amp;amp; " - " &amp;amp; err.description&lt;/P&gt;
&lt;P&gt;which may provide valuable hints for a further investigating.&lt;/P&gt;</description>
      <pubDate>Wed, 24 Apr 2024 10:26:35 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Sending-Email-to-More-than-Two-Recipients-Using-Qlikview-Macros/m-p/2444292#M1231670</guid>
      <dc:creator>marcus_sommer</dc:creator>
      <dc:date>2024-04-24T10:26:35Z</dc:date>
    </item>
    <item>
      <title>Re: Sending Email to More than Two Recipients Using Qlikview Macros through Outlook</title>
      <link>https://community.qlik.com/t5/QlikView/Sending-Email-to-More-than-Two-Recipients-Using-Qlikview-Macros/m-p/2444381#M1231672</link>
      <description>&lt;P&gt;&lt;a href="https://community.qlik.com/t5/user/viewprofilepage/user-id/28038"&gt;@marcus_sommer&lt;/a&gt;&amp;nbsp;when I tried&amp;nbsp;&lt;/P&gt;
&lt;P&gt;On Error Resume Next&lt;/P&gt;
&lt;P&gt;and afterwards a:&amp;nbsp;&lt;/P&gt;
&lt;P&gt;msgbox err.number &amp;amp; " - " &amp;amp; err.description, it display -2147467269 - Outlook does not recognize one or more names.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;But I observed one thing when I used only one domain like this:&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; ' Recipient's email address&lt;BR /&gt;objMail.To = "olu@yahoo.com"&lt;BR /&gt;objMail.Cc = "ola@yahoo.com;dove@yahoo.com;dola@yahoo.com" &lt;BR /&gt;objMail.BCC = "coke@yahoo.com;&amp;nbsp;&lt;A href="mailto:kola@yahoo.com&amp;quot;" target="_blank"&gt;kola@yahoo.com"&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;It sent without any error.&lt;/P&gt;</description>
      <pubDate>Wed, 24 Apr 2024 13:45:44 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Sending-Email-to-More-than-Two-Recipients-Using-Qlikview-Macros/m-p/2444381#M1231672</guid>
      <dc:creator>olaoyesunday1</dc:creator>
      <dc:date>2024-04-24T13:45:44Z</dc:date>
    </item>
    <item>
      <title>Re: Sending Email to More than Two Recipients Using Qlikview Macros through Outlook</title>
      <link>https://community.qlik.com/t5/QlikView/Sending-Email-to-More-than-Two-Recipients-Using-Qlikview-Macros/m-p/2444416#M1231674</link>
      <description>&lt;P&gt;Such behaviour might be caused by any configurations and/or security settings which may enforce a resolving of the recipients against any lists/contacts or not allowing more as one domain at a time or similar stuff - any maybe not only directly from Outlook else also from the related Exchange server.&lt;/P&gt;
&lt;P&gt;Of course there are again a lot of hints to this kind of issue:&amp;nbsp;&lt;A href="https://www.google.com/search?q=-2147467269+-+Outlook+does+not+recognize+one+or+more+names#ip=1" target="_blank"&gt;-2147467269 - Outlook does not recognize one or more names&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;If you couldn't practically solve this you may to consider to skip the approach with n recipients within a single mail and looping through the list of recipients and each one gets it own mail.&lt;/P&gt;
&lt;P&gt;Beside of all the above you may need to get in touch with your IT department because there may various rules in place to restrict the number of recipients and mails per time and further conditions.&lt;/P&gt;</description>
      <pubDate>Wed, 24 Apr 2024 15:01:27 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Sending-Email-to-More-than-Two-Recipients-Using-Qlikview-Macros/m-p/2444416#M1231674</guid>
      <dc:creator>marcus_sommer</dc:creator>
      <dc:date>2024-04-24T15:01:27Z</dc:date>
    </item>
  </channel>
</rss>

