thats a typo Carl, instead of $us, i have $bcc. thanks for the tip. but its still not sending the email to the $bcc emails.
Carl Heaton wrote:
I cant see where u are passing BCC into the function ?
Plus a faster coding tip... rather than using
$header = $header."addition";
use
$header .= "addition";
Regards
Carl
vic wrote:
can someone tell me why this is not sending the bcc mail?
function mailit ($to, $subject, $nfo) {
$me="me@domain.com";
$bcc="me@domain.com, him@domain.com";
$header="From: us <our@$SERVER_NAME> \n";
$header=$header. "Reply-To:$me \n";
$header=$header. "BCC:$bcc \n";
$retval = mail($to,$subject,$nfo,$header);
return $retval;
}
help!