<?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: JSL mail function in Discussions</title>
    <link>https://community.jmp.com/t5/Discussions/How-to-send-mail-to-multiple-e-mail-addresses-using-JSL-mail/m-p/14448#M13489</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks Ron and msharp for the replies.&lt;/P&gt;&lt;P&gt;I actually can send email with the above scripting guide to one email address only.&amp;nbsp; Is there any way I can add multiple email address in the first&lt;/P&gt;&lt;P&gt;argument?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 29 Sep 2015 00:29:18 GMT</pubDate>
    <dc:creator>wei</dc:creator>
    <dc:date>2015-09-29T00:29:18Z</dc:date>
    <item>
      <title>How to send mail to multiple e-mail addresses using JSL mail function</title>
      <link>https://community.jmp.com/t5/Discussions/How-to-send-mail-to-multiple-e-mail-addresses-using-JSL-mail/m-p/14445#M13486</link>
      <description>&lt;P&gt;Hi There,&lt;/P&gt;
&lt;P&gt;May I ask if possible to send mail in jsl to multiple email addresses?&amp;nbsp; What are the parameter use?&lt;/P&gt;
&lt;P&gt;Thank you in advance.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Regards,&lt;/P&gt;
&lt;P&gt;Sherwin&lt;/P&gt;</description>
      <pubDate>Fri, 15 Sep 2017 20:38:03 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/How-to-send-mail-to-multiple-e-mail-addresses-using-JSL-mail/m-p/14445#M13486</guid>
      <dc:creator>wei</dc:creator>
      <dc:date>2017-09-15T20:38:03Z</dc:date>
    </item>
    <item>
      <title>Re: JSL mail function</title>
      <link>https://community.jmp.com/t5/Discussions/How-to-send-mail-to-multiple-e-mail-addresses-using-JSL-mail/m-p/14446#M13487</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;hi Wei,&lt;/P&gt;&lt;P&gt;if you are using windows than you can send an email using JSL. the following is from the JMP scripting guide:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Mail&lt;/P&gt;&lt;P&gt;(Windows only) Mail sends an e-mail message to alert a user about a condition in JMP. For example, &lt;/P&gt;&lt;P&gt;a process control manager might include a test alert script in a control chart to trigger an e-mail &lt;/P&gt;&lt;P&gt;warning to her pager:&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;mail("&lt;/SPAN&gt;&lt;A class="jive-link-email-small" href="mailto:JaneDoe@company.com"&gt;JaneDoe@company.com&lt;/A&gt;&lt;SPAN&gt;", "out of control", "Process 12A out of control at "||Format(today(), &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;"d/m/y h:m:s"));&lt;/P&gt;&lt;P&gt;Mail can also send an attachment with the e-mail. An optional fourth argument specifies the &lt;/P&gt;&lt;P&gt;attachment. The attachment is transferred in binary format after its existence on the disk is &lt;/P&gt;&lt;P&gt;verified. For example, to attach the Big Class.jmp data table, submit&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;mail("&lt;/SPAN&gt;&lt;A class="jive-link-email-small" href="mailto:JohnDoe@company.com"&gt;JohnDoe@company.com&lt;/A&gt;&lt;SPAN&gt;", "Interesting Data Set", "Have a look at this class&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;data.", "C:\myJMPData\Big Class.jmp");&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;the following is from the help files:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P class="S1SynObj"&gt;&lt;A name="3348011"&gt;&lt;/A&gt;Mail("host.id", "subject", "message", "attachment")&lt;/P&gt;&lt;P class="S2Syn"&gt;&lt;A name="3348012"&gt;&lt;/A&gt;Description&lt;/P&gt;&lt;P class="S3Syn"&gt;&lt;A name="3347588"&gt;&lt;/A&gt;(Windows only) Sends e-mail (using MAPI) to the &lt;SPAN class="argument"&gt;host.id&lt;/SPAN&gt; with the specified &lt;SPAN class="argument"&gt;subject&lt;/SPAN&gt; and &lt;SPAN class="argument"&gt;message&lt;/SPAN&gt; texts. Sends one or more attachments specified by the optional &lt;SPAN class="argument"&gt;attachment&lt;/SPAN&gt; parameter. The attachment argument can evaluate to a string or list of strings.&lt;/P&gt;&lt;P class="S2Syn"&gt;&lt;A name="3347249"&gt;&lt;/A&gt;Examples&lt;/P&gt;&lt;P class="S3Syn"&gt;&lt;A name="3347323"&gt;&lt;/A&gt;To send an email with multiple attachments: &lt;/P&gt;&lt;P class="code"&gt;&lt;A name="3347402"&gt;&lt;/A&gt;Mail(&lt;/P&gt;&lt;P class="code"&gt;&lt;A name="3347403"&gt;&lt;/A&gt;"&lt;SPAN class="argument"&gt;&lt;A class="jive-link-email-small" href="mailto:yourname@company.com"&gt;yourname@company.com&lt;/A&gt;&lt;/SPAN&gt;",&lt;/P&gt;&lt;P class="code"&gt;&lt;A name="3347404"&gt;&lt;/A&gt;"New data and script",&lt;/P&gt;&lt;P class="code"&gt;&lt;A name="3347405"&gt;&lt;/A&gt;"Today’s updated data table and script are attached.",&lt;/P&gt;&lt;P class="code"&gt;&lt;A name="3347406"&gt;&lt;/A&gt;{"$DOCUMENTS/wd.jsl", "$DOCUMENTS/survey.jmp"}&lt;/P&gt;&lt;P class="code"&gt;&lt;A name="3347408"&gt;&lt;/A&gt;);&lt;/P&gt;&lt;P class="S3Syn"&gt;&lt;A name="3347693"&gt;&lt;/A&gt;or:&lt;/P&gt;&lt;P class="code"&gt;&lt;A name="3347769"&gt;&lt;/A&gt;list = {"$DOCUMENTS/wd.jsl", "$DOCUMENTS/survey.jmp"};&lt;/P&gt;&lt;P class="code"&gt;&lt;A name="3347915"&gt;&lt;/A&gt;Mail(&lt;/P&gt;&lt;P class="code"&gt;&lt;A name="3347945"&gt;&lt;/A&gt;"&lt;SPAN class="argument"&gt;&lt;A class="jive-link-email-small" href="mailto:yourname@company.com"&gt;yourname@company.com&lt;/A&gt;&lt;/SPAN&gt;",&lt;/P&gt;&lt;P class="code"&gt;&lt;A name="3347946"&gt;&lt;/A&gt;"New data and script",&lt;/P&gt;&lt;P class="code"&gt;&lt;A name="3347916"&gt;&lt;/A&gt;"Today’s updated data table and script are attached.",&lt;/P&gt;&lt;P class="code"&gt;&lt;A name="3347919"&gt;&lt;/A&gt;list&lt;/P&gt;&lt;P class="code"&gt;&lt;A name="3347776"&gt;&lt;/A&gt;);&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 28 Sep 2015 11:13:03 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/How-to-send-mail-to-multiple-e-mail-addresses-using-JSL-mail/m-p/14446#M13487</guid>
      <dc:creator>ron_horne</dc:creator>
      <dc:date>2015-09-28T11:13:03Z</dc:date>
    </item>
    <item>
      <title>Re: JSL mail function</title>
      <link>https://community.jmp.com/t5/Discussions/How-to-send-mail-to-multiple-e-mail-addresses-using-JSL-mail/m-p/14447#M13488</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Just a word of caution, the mail function won't work if your JMP and email are running different bit versions.&amp;nbsp; For example a 64bit JMP and 32bit Outlook.&amp;nbsp; Unless they have finally found a fix for this I don't know about.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 28 Sep 2015 15:51:07 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/How-to-send-mail-to-multiple-e-mail-addresses-using-JSL-mail/m-p/14447#M13488</guid>
      <dc:creator>msharp</dc:creator>
      <dc:date>2015-09-28T15:51:07Z</dc:date>
    </item>
    <item>
      <title>Re: JSL mail function</title>
      <link>https://community.jmp.com/t5/Discussions/How-to-send-mail-to-multiple-e-mail-addresses-using-JSL-mail/m-p/14448#M13489</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks Ron and msharp for the replies.&lt;/P&gt;&lt;P&gt;I actually can send email with the above scripting guide to one email address only.&amp;nbsp; Is there any way I can add multiple email address in the first&lt;/P&gt;&lt;P&gt;argument?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 29 Sep 2015 00:29:18 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/How-to-send-mail-to-multiple-e-mail-addresses-using-JSL-mail/m-p/14448#M13489</guid>
      <dc:creator>wei</dc:creator>
      <dc:date>2015-09-29T00:29:18Z</dc:date>
    </item>
    <item>
      <title>Re: JSL mail function</title>
      <link>https://community.jmp.com/t5/Discussions/How-to-send-mail-to-multiple-e-mail-addresses-using-JSL-mail/m-p/14449#M13490</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Try to simply put multiple e-mailadresses separated by comma in one string. I tried that on the Mac &lt;SPAN style="font-size: 10pt; line-height: 1.5em;"&gt;– yes, t&lt;/SPAN&gt;&lt;SPAN style="font-size: 10pt;"&gt;&lt;SPAN style="line-height: 1.5em;"&gt;he Mail() function is no longer Windows only – and it kind &lt;/SPAN&gt;&lt;SPAN style="line-height: 19.5px;"&gt;of&lt;/SPAN&gt;&lt;SPAN style="line-height: 1.5em;"&gt; works. &lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt; line-height: 1.5em;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt; line-height: 1.5em;"&gt;A Mail.app dialogue popped-up about the ad&lt;/SPAN&gt;dress (i.e. the csv-chain of addresses) not appearing to be a proper e-mail address but &lt;SPAN style="font-size: 10pt; line-height: 1.5em;"&gt;when I clicked "send anyway" they were all sent as expected.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Other Mail clients and Windows may behave differently.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 29 Sep 2015 05:28:39 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/How-to-send-mail-to-multiple-e-mail-addresses-using-JSL-mail/m-p/14449#M13490</guid>
      <dc:creator>ms</dc:creator>
      <dc:date>2015-09-29T05:28:39Z</dc:date>
    </item>
    <item>
      <title>Re: JSL mail function</title>
      <link>https://community.jmp.com/t5/Discussions/How-to-send-mail-to-multiple-e-mail-addresses-using-JSL-mail/m-p/14450#M13491</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks MS...&lt;/P&gt;&lt;P&gt;Comma is not working for windows and the log shows "unable to resolve recipient name in address book".&lt;/P&gt;&lt;P&gt;I still need to figure out what is the right procedure.&amp;nbsp; It might be in windows setting.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 30 Sep 2015 00:43:43 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/How-to-send-mail-to-multiple-e-mail-addresses-using-JSL-mail/m-p/14450#M13491</guid>
      <dc:creator>wei</dc:creator>
      <dc:date>2015-09-30T00:43:43Z</dc:date>
    </item>
    <item>
      <title>Re: JSL mail function</title>
      <link>https://community.jmp.com/t5/Discussions/How-to-send-mail-to-multiple-e-mail-addresses-using-JSL-mail/m-p/14451#M13492</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Since your using windows I'm assuming you use Outlook.&amp;nbsp; Outlook deliminates email by ";" not by ",".&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 30 Sep 2015 14:17:18 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/How-to-send-mail-to-multiple-e-mail-addresses-using-JSL-mail/m-p/14451#M13492</guid>
      <dc:creator>msharp</dc:creator>
      <dc:date>2015-09-30T14:17:18Z</dc:date>
    </item>
    <item>
      <title>Re: JSL mail function</title>
      <link>https://community.jmp.com/t5/Discussions/How-to-send-mail-to-multiple-e-mail-addresses-using-JSL-mail/m-p/14452#M13493</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;good to know the other options. I've always used something like this from a button box...&amp;nbsp; Use "%20" instead of spaces. There's probably a better way but I don't use it often so it is good enough for me.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;newwindow("example",&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; ButtonBox("Report A Bug", web("mailto:&lt;/SPAN&gt;&lt;A class="jive-link-email-small" href="mailto:xyz@domain.com"&gt;xyz@domain.com&lt;/A&gt;&lt;SPAN&gt;;&lt;/SPAN&gt;&lt;A class="jive-link-email-small" href="mailto:xyz1@domain.com"&gt;xyz1@domain.com&lt;/A&gt;&lt;SPAN&gt;?Subject=subject%20goes%20here&amp;amp;Body=Body%20goes%20here."))&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;);&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 08 Oct 2015 17:31:35 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/How-to-send-mail-to-multiple-e-mail-addresses-using-JSL-mail/m-p/14452#M13493</guid>
      <dc:creator>mikedriscoll</dc:creator>
      <dc:date>2015-10-08T17:31:35Z</dc:date>
    </item>
    <item>
      <title>Re: JSL mail function</title>
      <link>https://community.jmp.com/t5/Discussions/How-to-send-mail-to-multiple-e-mail-addresses-using-JSL-mail/m-p/40377#M23653</link>
      <description>&lt;P&gt;Sorry to resurrect a potentially old post, but I had this problem today, and none of these solutions worked. Semicolons, "%3B", spaces, commas--all returned errors.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Here's what I did:&lt;/P&gt;&lt;P&gt;1. Make a list of recipients.&lt;/P&gt;&lt;P&gt;2. Use a for loop to cycle through the recipients, sending each an email.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Code example:&lt;/P&gt;&lt;P&gt;Recipients = {&lt;BR /&gt;"a@b.com",&lt;BR /&gt;"b@b.com",&lt;BR /&gt;"c@b.com",&lt;BR /&gt;};&lt;/P&gt;&lt;P&gt;For( i = 1, i &amp;lt;= N Items( Recipients ), i++,&lt;BR /&gt;Mail(&lt;BR /&gt;Recipients[i],&lt;BR /&gt;"Automatic email subject",&lt;BR /&gt;"Please fill in your TPS reports for the week .",&lt;BR /&gt;"C:\Fake Address\Fake TPS report.xlsx"&lt;BR /&gt;)&lt;BR /&gt;);&lt;/P&gt;</description>
      <pubDate>Tue, 13 Jun 2017 22:20:58 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/How-to-send-mail-to-multiple-e-mail-addresses-using-JSL-mail/m-p/40377#M23653</guid>
      <dc:creator>Jed_Campbell</dc:creator>
      <dc:date>2017-06-13T22:20:58Z</dc:date>
    </item>
    <item>
      <title>Re: JSL mail function</title>
      <link>https://community.jmp.com/t5/Discussions/How-to-send-mail-to-multiple-e-mail-addresses-using-JSL-mail/m-p/384848#M63521</link>
      <description>&lt;P&gt;I also find that nothing works as an address delimiter, always get an error that email address is not correct.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Yes, the loop solution is the only one that works....however....each time Mail() is invoked, Outlook brings up a dialog which says "A program is trying to send an email message on your behalf. If this is unexpected,&amp;nbsp; click Deny and verify your antivirus software is up to date..."&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;It's tolerable to have to click "Allow" once in order to send the email but to have to do it multiple times for a loop becomes inelegant to say the least.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;By the way, this pop-up also means it's impossible to have a scheduled / batch job&amp;nbsp; in JMP sending email since the email program forces acknowledgement of the attempt to send email. It could be this is because of my organization's information security policies.&lt;/P&gt;</description>
      <pubDate>Thu, 13 May 2021 16:34:36 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/How-to-send-mail-to-multiple-e-mail-addresses-using-JSL-mail/m-p/384848#M63521</guid>
      <dc:creator>tsl</dc:creator>
      <dc:date>2021-05-13T16:34:36Z</dc:date>
    </item>
    <item>
      <title>Re: JSL mail function</title>
      <link>https://community.jmp.com/t5/Discussions/How-to-send-mail-to-multiple-e-mail-addresses-using-JSL-mail/m-p/384850#M63522</link>
      <description>&lt;P&gt;There's another "solution" that almost works, but it still requires interaction in order for the email to actually send. If you create a "mailto:" link, then the email can go to multiple people, but you still have to click the send button, and you can't add attachments this way.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;As an example (generated using the tool at:&amp;nbsp;&lt;A href="https://cha4mot.com/t_mailto.html" target="_blank"&gt;https://cha4mot.com/t_mailto.html&lt;/A&gt;:(&lt;/img&gt;&lt;/P&gt;&lt;P&gt;web("mailto:fred, wilma, betty, barney?Subject=test%20subject&amp;amp;Body=body");&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 13 May 2021 16:46:01 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/How-to-send-mail-to-multiple-e-mail-addresses-using-JSL-mail/m-p/384850#M63522</guid>
      <dc:creator>Jed_Campbell</dc:creator>
      <dc:date>2021-05-13T16:46:01Z</dc:date>
    </item>
  </channel>
</rss>

