RE: nobody header
| From: | Simon R Jones | Date: | Mon, 30 Apr 2001 14:40:04 +0000 |
| Subject: | RE: nobody header | ||
| References: | 1 | Groups: | php.db |
| Request: | Send a blank email to php-db+get-8991@lists.php.net to get a copy of this message | ||
> the script below gives me a from header = "Nobody"; and the
> $from which is supposed to be the header has been included in the
> body of the email. How can i make the $from to be placed in the header?
hi Jennifer,
you have to specify the From email address in the following way:
$from = "From: eper@tridel.net";
the last parameter passed to PHP is not by default the from address, but any
additional paremeters, so you've gotta tell PHP it's the from address (in
the way above). Look here for more info:
http://www.php.net/manual/en/function.mail.php
the "nobody" user will be the webserver, and since your original script did
not specify a sender then this is what the server usually defaults to.
best wishes,
Simon
-------------------------------------------
Studio 24 Ltd | tel. 01223 501 892
PO Box 88 | fax. 0870 063 1216
Cambridge | mob. 07974 074 547
CB4 1XH | www.studio24.net