Liam
Liam

Reputation: 9855

Multiple recipients PHP contact form

Ive made a contact form and I need it to go to mulitple recipients. In my PHP script where I have my $to variable, is it simply a case of adding a comma between each recipient? or multiple $to variables?

thanks..

$to = "[email protected]"; 

Upvotes: 0

Views: 1269

Answers (1)

Greg K
Greg K

Reputation: 11120

Yes, addresses must be comma delimited and comply to RFC 2822 as the manual page for this function states: http://www.php.net/manual/en/function.mail.php

$to = "[email protected], [email protected]";

Upvotes: 2

Related Questions