I have a problem, when I want to send mail to a customer and also to the admins.
The problem is, that the customer receives the mail, but the bcc will not if the from = bcc. Is there any setting I have missed? Could this be a server issue, or a Zend related one?
Example code I use:
$mail = new Zend_Mail();
$mail->setFrom( 'admin@example.com', 'Admin' )
->addTo( 'customer@anydomain.com', 'Customer' )
->setBodyText( 'Example' )
->addBcc('admin@example.com');
$mail->send();
The headers are (from $mail->getHeaders()):
array(3) {
["From"]=>
array(2) {
[0]=>
string(26) "Admin <admin@example.com>"
["append"]=>
bool(true)
}
["To"]=>
array(2) {
[0]=>
string(25) "Customer <customer@anydomain.com>"
["append"]=>
bool(true)
}
["Bcc"]=>
array(2) {
[0]=>
string(18) "admin@example.com"
["append"]=>
bool(true)
}
}