Re: mail() Bcc:
| From: | Kevin Stone | Date: | Mon, 24 Mar 2003 21:29:37 +0000 |
| Subject: | Re: mail() Bcc: | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-140896@lists.php.net to get a copy of this message | ||
----- Original Message -----
From: "Oden Odenius" <oden_php@hotmail.com>
To: <php-general@lists.php.net>
Sent: Monday, March 24, 2003 1:44 PM
Subject: [PHP] mail() Bcc:
> How can send bcc: with mail()?
>
>
>
> --
> Programmers are tools for convert coffeine into code... (c) Oden
From, CC and BCC are headers to be set in the fourth parameter of the mail()
function. Headers must be spearated by end-of-line characters.
$headers = "From: me@mydomain.com\r\n
CC: you@yourdomain.com\r\n
BCC: them@theirdomain.com";
mail($to, $subject, $body, $headers);
There are many other headers that you may find useful that are just as easy
to add through the mail() function.
HTH,
Kevin