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 -

c - Unrecognised emulation mode: elf_i386 on MinGW32 -