send mail function not working properly
Posted: Thu May 08, 2008 5:24 pm
Hi guys
I finally finished my flash website. Unfortunately, my knowledge of php is a little outdated
While my contact form works flawlessly, I do have a LITTLE problem
whenever I try to retrieve my emails via Outlook, it always states that the mail is coming from
anynymous@linuxplesk...so basically the server
I want it to say that its coming from Flash Web Design
here is the code:
Do you guys have any ideas?
the site is http://www.flashwebdesign.co.nz
I finally finished my flash website. Unfortunately, my knowledge of php is a little outdated
While my contact form works flawlessly, I do have a LITTLE problem
whenever I try to retrieve my emails via Outlook, it always states that the mail is coming from
anynymous@linuxplesk...so basically the server
I want it to say that its coming from Flash Web Design
here is the code:
Code: Select all
<?php
$mailfrom = "Flash Web Design";
$to = "info@flashwebdesign.co.nz";
$u_name = $_POST['name'];
$u_mail = $_POST['email'];
$subject = $_POST['subject'];
$u_message = $_POST['message'];
$msg = "Sender: $u_name\nE-Mail: \nMessage: $u_message";
$headers = "From:Flash Web Design Contact Form Submission: <info@flashwebdesign.co.nz>\n";
$headers = "Reply-To:$u_mail\n";
$mail_status = mail($to,$subject,$msg,$headers);
if($mail_status){
echo "returnVal=success";
}
else{
echo "returnVal=error";
}
?>the site is http://www.flashwebdesign.co.nz