Re: Is mail() broken in 4.3.0 when it comes to BCC?

From: Date: Mon, 10 Feb 2003 13:53:48 +0000
Subject: Re: Is mail() broken in 4.3.0 when it comes to BCC?
References: 1 2 3  Groups: php.general 
Request: Send a blank email to php-general+get-135054@lists.php.net to get a copy of this message
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 <birthday@example.com>\r\n"; $headers .= "Cc: birthdayarchive@example.com\r\n"; $headers .= "Bcc: birthdaycheck@example.com\r\n"; /* and now mail it */ mail($to, $subject, $message, $headers); ----- Original Message ----- From: "Mark Virtue" <N_O_S_P_A_M-mark@virtualcreations.com.au> To: <php-general@lists.php.net> 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("x@y.com", "My Subject", "Line 1\nLine 2", > "Bcc:a@b.com"); > > but this one doesn't > > mail("x@y.com", "My Subject", "Line 1\nLine 2", "Bcc: > a@b.com"); > > It used to be fine before 4.3.0. > > > > "Francesco Leonetti" <fleo@garamond.it> wrote in message > news:008101c2d108$f75ff600$0100a8c0@fleo... > > Try this: > > > > mail("x@y.com", "My Subject", "Line 1\nLine 2", "From: > > d@c.com\nBCC: > > a@b.com"); > > > > > > > > ----- Original Message ----- > > From: "Mark Virtue" <N_O_S_P_A_M-mark@virtualcreations.com.au> > > To: <php-general@lists.php.net> > > 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("x@y.com", "My Subject", "Line 1\nLine 2", > > > "From: a@b.com"); > > > > > > whereas if I change it to this: > > > > > > mail("x@y.com", "My Subject", "Line 1\nLine 2", > > > "Bcc: a@b.com"); > > > > > > 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 >

« previous php.general (#135054) next »