You're almost there! Please answer a few more questions for access to the Applications content. Complete registration
Interested in joining? Complete your registration by providing Areas of Interest here. Register

Public Mail API - multiple email addresses in "to" ?

Received Response
12
Views
4
Comments
edited Jun 29, 2018 10:30AM in Integrations and APIs 4 comments

Content

Hi All

I am trying to figure out how to put multiple emails in the $mm->To->EmailAddresses line of the code but cant seem to figure it out, have tried multiple ways but it keeps complaining when I run the script.

$mm->To->EmailAddresses = array($email1);

 

I have tried this but have had no luck:

$mm->To->EmailAddresses = array($email1, $email2, $email3);

Does anyone have any pointers ? the documentation doesnt explain how to do multiples.

Cheers!

Ian

Howdy, Stranger!

Log In

To view full details, sign in.

Register

Don't have an account? Click here to get started!