Hi, the reason for this is that you are using tHeaderData["to"][1] for the receiver in the tsNetSmtpSync function call. So although your smtp header contains all receivers, you are just sending it to tHeaderData["to"][1].
I don´t know if the function can also handle an array for the receivers. But Charles wrote in an earlier post: "The tsNetSmtp* functions can take multiple e-mail addresses in a single call, just ensure the tRecipient variable has one address per line. So in your case you have just to convert the tHeaderData[“to”] array to a single variable with each email address in a separate line. Regards, Matthias > Am 28.09.2016 um 18:00 schrieb pink <nab...@mad.pink>: > > I am trying to put in multiple recipients into the "TO" line of the email > header. > So far in all my testing, only the first recipient receives the message, was > wondering if anyone else has tried doing this yet. > > My script was rather long, so I put it on github instead of pasting it here: > https://gist.github.com/madpink/707ff7653998ba1f62fda7f0c54d05f7#file-tsnet_email_test-lc > <https://gist.github.com/madpink/707ff7653998ba1f62fda7f0c54d05f7#file-tsnet_email_test-lc> > > > Here's the email header that is generated in the example from my gist: > > Content-Type: text/html; charset=utf-8 > Date: Wed, 28 Sep 2016 11:21:58 -0400 > From: Arthur Dent <arthur@somewhere.galaxy> > To: Zaphod Beeblebrox <zaphod23@somewhere.galaxy>,Ford Prefect > <fordprefect@somewhere.galaxy> > Subject: =?utf-8?B?U28gbG9uZw==?= > > so in the above example, zaphod gets it, ford does not... if eliminate the > names and just use addreses, the first person is still the one to receive > the email: > > To: zaphod23@somewhere.galaxy,fordprefect@somewhere.galaxy > > Note: both names/addresses show up on the received email. I've tried > changing the "To" address in the tsNetSmtpSync function itself to include > comma seperated addresses, but that returns an error > > Any suggestions? > > > > -- > View this message in context: > http://runtime-revolution.278305.n4.nabble.com/tsNetSmtpSync-Multiple-to-addresses-tp4708987.html > Sent from the Revolution - User mailing list archive at Nabble.com. > > _______________________________________________ > use-livecode mailing list > use-livecode@lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your subscription > preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode _______________________________________________ use-livecode mailing list use-livecode@lists.runrev.com Please visit this url to subscribe, unsubscribe and manage your subscription preferences: http://lists.runrev.com/mailman/listinfo/use-livecode