submit to multiple email address'

1 reply · opened Nov 5, 2016

IivanpossNov 5, 2016

I have the sendmail php working but to one email recipient only. i would like it to go to multiple recipients. Tried a couple of different ways to send to multiple address'

I have it set up like this but this doesn't seem to work:

$toemails[] = array(

'email' => 'info@blahblahblah.com', 'steve@blahblahblah.com', 'mary@gmail.com',// Your Email Address
'name' => 'info' // Your Name
);

how would I send to multiples?

SSemicolon WebSTAFFNov 6, 2016

Hello,

This is Definitely Possible but you are using an incorrect code. Please consider using the following code:

$toemails[] = array(
				'email' => 'username-2@website.com', // Your Email Address
				'name' => 'Your Name 2' // Your Name
			);

$toemails[] = array(
				'email' => 'username-3@website.com', // Your Email Address
				'name' => 'Your Name 3' // Your Name
			);

... and so on

This will definitely work fine. Let us know if we can help you with anything else or if you find any further issues.

Have the same question, or something new?

Sign in to the Canvas dashboard to reply or open your own topic. Canvas owners get direct help from the SemiColonWeb team.

Reply on the dashboard