PitbullMean
03-11-2009, 12:58 AM
Is there a way to have it so the form puts then senders email in the Heading instead of mine.
Cause I use mozilla thunderbird and when you check the email it puts it as such
Subject: then the subject
To: my email
Date: Date sent.
From: senders email
But my form it puts my email in the from section I have tried many ways to get around it, it either no longer sends the form email or it sends it by saying eric@node64.com or something
Any help would be appreciated;
$EmailFrom = "eric@habugfx.com";
// I have tried putting $email; "From: $email"; but nothing works.
$EmailTo = "eric@habugfx.com";
$Subject = "Habu GFX Contact Form";
// prepare email body text
$Body = "";
$Body .= "Name: ";
$Body .= $name;
$Body .= "\n";
$Body .= "Email: ";
$Body .= $email;
$Body .= "\n";
$Body .= "Message: ";
$Body .= $message;
$Body .= "\n";
// send email
$success = mail($EmailTo, $Subject, $Body, "From: <$EmailFrom>");
image of what i mean
http://www.eric.dragonethosting.com/screenie.jpg
Cause I use mozilla thunderbird and when you check the email it puts it as such
Subject: then the subject
To: my email
Date: Date sent.
From: senders email
But my form it puts my email in the from section I have tried many ways to get around it, it either no longer sends the form email or it sends it by saying eric@node64.com or something
Any help would be appreciated;
$EmailFrom = "eric@habugfx.com";
// I have tried putting $email; "From: $email"; but nothing works.
$EmailTo = "eric@habugfx.com";
$Subject = "Habu GFX Contact Form";
// prepare email body text
$Body = "";
$Body .= "Name: ";
$Body .= $name;
$Body .= "\n";
$Body .= "Email: ";
$Body .= $email;
$Body .= "\n";
$Body .= "Message: ";
$Body .= $message;
$Body .= "\n";
// send email
$success = mail($EmailTo, $Subject, $Body, "From: <$EmailFrom>");
image of what i mean
http://www.eric.dragonethosting.com/screenie.jpg