Tuesday, 15 September 2015

pear - Mail.php: BCC not working -



pear - Mail.php: BCC not working -

i'm using pear's mail.php send automated emails client. email_ constants set properly. email gets sent email_from gmail business relationship , email_to recipient gets email. i've been told email_cc recipient getting emails questions whether or not that's been double checked. email_bcc email address of mine utilize know when client gets emails - should show on phone @ time email sent.

i can go gmail sent folder , see emails client. however, not receiving of email @ email_bcc address.

i've done bit of google searching on matter , thought i'd found reply yesterday. either illustration copied old (and no longer valid) or missed something. help appreciated.

here's relevant code:

$headers = array ('from' => email_from, 'to' => email_to, 'cc' => email_cc, 'reply-to' =>email_reply_to, 'subject' => $subject); $smtp = mail::factory('smtp', array('host' => 'ssl://smtp.gmail.com', 'port' => port, 'auth' => true, 'username' => email_from, 'password' => pwd) ); $smtp_to = array('to' => email_to, 'cc' => email_cc, 'bcc' = email_bcc); $mail = $smtp->send($smtp_to, $headers, $body);

thanks

php pear bcc

No comments:

Post a Comment