|
Posted by Steve on 09/14/05 18:09
> $messub = "Subject: ".$subject."\n";
> $mesmsg .= "Message: ".$msg."\n";
> $mesname .= "Name: ".$name."\n";
> $mesemail .= "Email: ".$email."\n";
> mail('$to', $sub, $messub, $mesmsg, $mesname, $mesemail);
Please read the documentation for the mail() function
<http://www.php.net/manual/en/function.mail.php> and don't make up your
own protocol.
Specifically: $to does not need single quotes; the 3rd parameter is
supposed to be the message body, not the subject; the 4th parameter is
extra headers, not the message body; the 5th parameter is usually
unused; the extra headers MUST include a "From:" header; none of the
headers are called "Subject:", "Message:", "Name:" or "Email:".
Try: mail( $to, $sub, $msg, "From:$email" );
---
Steve
[Back to original message]
|