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

Recommended Answers

All 2 Replies

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.

Thanks Again cereal

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.