email - PHP SMTP BCC, not going through -
recipients named in bcc/cc (in headers) not received. i've found couple of posts similar questions, no answers...
the code below, question is: "have of had similar problems?"
require_once "mail.php"; $host = "mail.mailserver.com"; $username = "notification@yourhost.com"; $password = "getyourownpassword"; $headers = array ('from' => "user name <$username>", 'to' => $to_, 'cc' => 'patty <patty@gmail.com>', 'subject' => $subj_, 'content-type' => 'text/html'); $smtp = mail::factory('smtp', array ('host' => $host, 'auth' => true, 'username' => $username, 'password' => $password)); $mail = $smtp->send($to_, $headers, $mail_msg);
it looks you're using pear mail module. if read here you'll see discussion headers passed pear module specifies how message looks, not gets it. if add cc header, person show being cc'd receive needs added recipients array. bcc, add them recpients array, don't show them in header.
Comments
Post a Comment