robert wrote:
I'm trying to learn. The recipient's are received and sent as To: and BCC: but the BCC: is basically broken. I have no problems when doing a To: and CC: everything works fine.
I know this is not a Squirrel problem, but I also know that you guys are email pros, and that's why I asked here.
Patrick Donker wrote:
robert wrote:
I'm trying to get away from the crusty old mail() function, and migrate to Pear's Mail.php. I've got one small glitch trying to incorportate BCC: headers. Everything works fine in AOL mail client. Hmph. Outlook Express seems ok, but when viewing all headers BCC: is visible. Mozilla simply shows the BCC: headers right up front. SquirrelMail refuses to open the email.
The script I'm using is located at http://hoss.citysquare.biz/testmail.phps
I could be way of, but arent things going wrong here? |// Let's Send Some Mail $recipients = $recipient_01 . ", " . $recipient_02;
Looks like you are sending to recipient 1 and 2 How should the mailer distinguish between who is who?
-Patrick
I got it! The trick to Bcc:
Is simply to /not have any header/ for that recipient.
$recipient_01 = "\"Robert Pruitt\" <[EMAIL PROTECTED]>"; $recipient_02 = "\"Joshua Pruitt\" <[EMAIL PROTECTED]>"; $recipients = $recipient_01 . ", " . $recipient_02;
$headers["Date"] = date("r");
$headers["To"] = $recipient_01;// Nuke This!!! // $headers["BCC"] = $recipient_02;
$headers["From"] = "\"Autoresponder\" <[EMAIL PROTECTED]>"; $headers["Subject"] = "Test Email"; $headers["Content-Type"] = "text/html; charset=us-ascii"; $headers["MIME-Version"] = "1.0";
$body = "This is your test email. Read it with great pleasure." . "\r\n"
. "\r\n"
. "Sincerely," . "\r\n"
. "The Web Server";$mail_object =& Mail::factory("smtp", $params);// Mail still gets sent to the recipient list, regardless // of the headers $status = $mail_object->send($recipients, $headers, $body);
------------------------------------------------------- SF email is sponsored by - The IT Product Guide Read honest & candid reviews on hundreds of IT Products from real users. Discover which products truly live up to the hype. Start reading now. http://ads.osdn.com/?ad_id=6595&alloc_id=14396&op=click -- squirrelmail-users mailing list Posting Guidelines: http://squirrelmail.org/wiki/wiki.php?MailingListPostingGuidelines List Address: [email protected] List Archives: http://news.gmane.org/thread.php?group=gmane.mail.squirrelmail.user List Archives: http://sourceforge.net/mailarchive/forum.php?forum_id=2995 List Info: https://lists.sourceforge.net/lists/listinfo/squirrelmail-users
