Web Hosting Talk







View Full Version : PHP form mailer doesnt work :-(


dallassmith
10-30-2002, 11:27 PM
Hey, heres the code, seems to work perfect, but isnt sending anything to my e-mail:

<?track_vars?>
<?php
$msg = "Sender's Full Name:\t$sender_name\n";
$msg .= "Sender's E-mail:\t$sender_email\n";
$msg .="Did You Like the Site?\t$like_site\n";
$msg .= "Additional Message:\t$message\n\n";
$mailheaders = "From: My Website\n";
$mailheaders .= "Reply-To: $sender_email\n\n";
mail("dallassmith23@zoomtown.com", "Feedback Form", $msg, $mailheaders);
echo "Thank You, $sender_name";
echo "We appriciate your feedback.";
?>

Thanks,
Aaron

sasha
10-31-2002, 01:12 AM
Your From field is broken. Try
$mailheaders = "From: My Website <you@yoursite.cx> \n";

UH-Matt
10-31-2002, 05:36 AM
http://unitedhosting.co.uk/downloads/form.zip

might help anyone after php formmail, its just an example i put together for a customer, but works well :)

jtrovato
10-31-2002, 08:17 AM
You posted alot of threads in one month.

UH-Matt
10-31-2002, 08:37 AM
:D