>     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: [EMAIL PROTECTED]";

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:

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,

     Studio 24 Ltd   |   tel. 01223 501 892
         PO Box 88   |   fax. 0870 063 1216
         Cambridge   |   mob. 07974 074 547
           CB4 1XH   |   www.studio24.net

PHP Database Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]

Reply via email to