Re: mail function. not working
| From: | CC Zona | Date: | Sat, 19 May 2001 21:03:49 +0000 |
| Subject: | Re: mail function. not working | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-53554@lists.php.net to get a copy of this message | ||
In article <71147934246.20010519131542@pacifier.com>,
rkurth@pacifier.com (Richard Kurth) wrote:
> Way does this not work it sends to the recipient but it will not
> send to the bcc this is right out of the manual.
> $recipient .= "rkurth@pacifier.com";
> $subject = "Hello";
> $message .= "The is the message\n";
> $message .= "--\r\n"; //Signature delimiter
> $message .= "http://northwesthost.com";
> $headers .= "From: Richard Kurth <rkurth@pacifier.com>\n";
> $headers .= "X-Sender: <rkurth@pacifier.com>\n";
> $headers .= "X-Mailer: NorthWestHost\n";
> $headers .= "X-Priority: 1\n";
> $headers .= "Return-Path: <rkurth@pacifier.com>\n";
> $headers .= "Content-Type: text/html; charset=iso-8859-1\n"; // Mime type
> $headers .= "bcc:rkurth@northwesthost.com, sales@northwesthost.com\n"; //
> BCCs to
>
> mail($recipient, $subject, $message, $headers);
Try changing all "\n"s to "\r\n" (the RFC calls for a CRLF as the line
break), the signature delimiter to "-- \r\n" (a space after the two
dashes), and "bcc:" to "Bcc: " (capitalize the B and add a space after the
colon). If it's still not working, try getting rid of all the extra
headers or putting the bcc before them.
--
CC