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

Capture and play voice with Asterisk ARI -

c++ - Can not find the "fiostream.h" file -

java - Why database contraints in HSQLDB are only checked during a commit when using transactions in Hibernate? -