sendmail.php - send email to variable AND email address -


this question has answer here:

i have php sendmail script sends email address user input:

$to = $_post['email']; 

how add actual email address go alongside - example:

$to = $_post['email', 'foo@bar.com']; 

thanks

you can , using array:

$to = array($_post['email'],'foo@bar.com'); 

Comments

Popular posts from this blog

ruby - Trying to change last to "x"s to 23 -

jquery - Clone last and append item to closest class -

css - Can I use the :after pseudo-element on an input field? -