View Full Version : multiple emails in contact form handler script

04-27-2012, 10:08 PM
How do i add multiple email addresses in a php email contact form handler?

heres the line:

$myemail = ' email here ';//<-----Put Your email address here.
if(empty($_POST['name']) ||
do i separate with a comma? like
name@domain.com, name2@domain.com
do i put them in separate quotations such as:
'name@domain.com' 'name2@domain.com'

or do i have to add new instances of
$myemail = 'email';

04-27-2012, 10:11 PM
Addresses don't go in quotes, just separate them with a comma and presumably put into $myemail if that's where the to: is going to.