I use this code to send Bcc mail. But all the copies are received with the $targetEmail on it, I want each mail look like it was sent to the final recipient only.
How can I send the mail directly calling an SMTP function?
//construct headers
// To header
$headers. = "To: $targetEmail\r\n";
// From header
$headers. = "From: $sender\r\n";
//add Bcc: header
$headers.= "Bcc: $ccList\r\n";
...
//send message
mail( $targetEmail, $subject, "", $headers);
Thanks
Rodolfothen send them seperate. that is the purpose of a bcc, it blind copies it self with the orignal sender.I will call the mail() funtion on a cicle of thousand members to be mailed! It won't be lead to errors?
Thanks!
How can I send the mail directly calling an SMTP function?
//construct headers
// To header
$headers. = "To: $targetEmail\r\n";
// From header
$headers. = "From: $sender\r\n";
//add Bcc: header
$headers.= "Bcc: $ccList\r\n";
...
//send message
mail( $targetEmail, $subject, "", $headers);
Thanks
Rodolfothen send them seperate. that is the purpose of a bcc, it blind copies it self with the orignal sender.I will call the mail() funtion on a cicle of thousand members to be mailed! It won't be lead to errors?
Thanks!