>From the PHP manual, hope this will help.

/* To send HTML mail, you can set the Content-type header. */
$headers  = "MIME-Version: 1.0\r\n";
$headers .= "Content-type: text/html; charset=iso-8859-1\r\n";

/* additional headers */
$headers .= "From: Birthday Reminder <[EMAIL PROTECTED]>\r\n";

$headers .= "Cc: [EMAIL PROTECTED]\r\n";
$headers .= "Bcc: [EMAIL PROTECTED]\r\n";

/* and now mail it */
mail($to, $subject, $message, $headers);


----- Original Message -----
From: "Mark Virtue" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Monday, February 10, 2003 1:46 PM
Subject: Re: [PHP] Is mail() broken in 4.3.0 when it comes to BCC?


> Your suggestion didn't work (but thanks anyway), but I tried removing the
> space from after the "Bcc:" (before the address) and it started working!
So
> this line works:
>
> mail("[EMAIL PROTECTED]", "My Subject", "Line 1\nLine 2", "Bcc:[EMAIL PROTECTED]");
>
> but this one doesn't
>
> mail("[EMAIL PROTECTED]", "My Subject", "Line 1\nLine 2", "Bcc: [EMAIL PROTECTED]");
>
> It used to be fine before 4.3.0.
>
>
>
> "Francesco Leonetti" <[EMAIL PROTECTED]> wrote in message
> 008101c2d108$f75ff600$0100a8c0@fleo">news:008101c2d108$f75ff600$0100a8c0@fleo...
> > Try this:
> >
> > mail("[EMAIL PROTECTED]", "My Subject", "Line 1\nLine 2", "From: [EMAIL PROTECTED]\nBCC:
> > [EMAIL PROTECTED]");
> >
> >
> >
> > ----- Original Message -----
> > From: "Mark Virtue" <[EMAIL PROTECTED]>
> > To: <[EMAIL PROTECTED]>
> > Sent: Monday, February 10, 2003 2:18 PM
> > Subject: [PHP] Is mail() broken in 4.3.0 when it comes to BCC?
> >
> >
> > > This line works as expected:
> > >
> > > mail("[EMAIL PROTECTED]", "My Subject", "Line 1\nLine 2", "From: [EMAIL PROTECTED]");
> > >
> > > whereas if I change it to this:
> > >
> > > mail("[EMAIL PROTECTED]", "My Subject", "Line 1\nLine 2", "Bcc: [EMAIL PROTECTED]");
> > >
> > > the mail never gets sent!
> > >
> > > I'm running 4.3.0 on Windows XP.
> > >
> > > Any thoughts?
> > >
> > >
> > >
> > > --
> > > PHP General Mailing List (http://www.php.net/)
> > > To unsubscribe, visit: http://www.php.net/unsub.php
> > >
> >
>
>
>
> --
> PHP General Mailing List (http://www.php.net/)
> To unsubscribe, visit: http://www.php.net/unsub.php
>


-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php

Reply via email to