so there is no way to pull this variable from an email form field?




> From: "W.D." <[EMAIL PROTECTED]>
>
> > I'm using a remote host, and when I call mail() with all the var's
pulling
> > values from form fields, it still shows as nobody in from header. Is
this
> a
> > server situation? Theyre using php4 support and they claim its that I'm
> not
> > using appropriate variables in the function.
> >
> >
>
>
> You have to set the From header manually:
>
>
> <?php
>     $to = "[EMAIL PROTECTED]";
>     $from = "[EMAIL PROTECTED]";
>     $subject = "Blah";
>     $body = "Lorem ipsum dolor sit amet.";
>
>     mail($to, $subject, $body, "From: $from");
> ?>
>
>
> http://www.php.net/manual/en/function.mail.php
>
>
> Regards
>
> Simon Garner


_________________________________________________________
Do You Yahoo!?
Get your free @yahoo.com address at http://mail.yahoo.com


-- 
PHP General 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