Re: Re: Getting the "From: admin@site.com" to work
| From: | dwalker | Date: | Sat, 26 Oct 2002 20:56:37 +0000 |
| Subject: | Re: Re: Getting the "From: admin@site.com" to work | ||
| Groups: | php.general | ||
| Request: | Send a blank email to php-general+get-121553@lists.php.net to get a copy of this message | ||
How would you then build into the headers an 'invisible' BCC (blind carbon
copy)?
-----Original Message-----
From: Monty <monty3@hotmail.com>
To: php-general@lists.php.net <php-general@lists.php.net>
Date: Saturday, October 26, 2002 3:53 PM
Subject: [PHP] Re: Getting the "From: admin@site.com" to work
>Andre Dubuc wrote:
>
>> Perhaps some kind guru can spare me some time. I've tried to get the
"From:
>> xxxx" field pre-filled for a registration/confirmation email that I send
out.
>
>To add to John's reply, here's how to do a multi-parameter Header. Also
note
>the \r\n at the end of each of these lines. If you don't do this, the
header
>won't be formatted properly. It took me some time to eventually figure this
>out when I first did this because I was using just \n which doesn't work in
>the header, but, does work in the body.
>
> $headers = "From: webmaster@yoursite.com\r\n"
> ."Reply-To: webmaster@yoursite.com\r\n"
> ."X-Mailer: PHP/4.0.2";
>
>You can also add other mail headers such as 'Importance: High' to the
>headers list.
>
>
>--
>PHP General Mailing List (http://www.php.net/)
>To unsubscribe, visit: http://www.php.net/unsub.php
>
>