0

Hi All,
Am trying to send the same e-mail to 2 addys with one click with out using the cc or bcc ,

this is the line i am syuck on

 $email = '$_REQUEST['email'],$_REQUEST['email2']' ;

it works if i do not add the 2nd email request to i am guessing i am not stictching them up right,
any clues ?
thanks xxx

2
Contributors
2
Replies
17
Views
3 Years
Discussion Span
Last Post by Kniggles
0

IF you're using Windows, the mail() function will not parse emails in format Name <email@domain.tld>.

Second use double quotes:

$email = "{$_REQUEST['email']},{$_REQUEST['email2']}";

Otherwise you have to escape the array keys quotes.

Third: avoid using $_REQUEST and filter the input, currently this makes your script attackable.

This question has already been answered. Start a new discussion instead.
Have something to contribute to this discussion? Please be thoughtful, detailed and courteous, and be sure to adhere to our posting rules.