Problems with email sending via PHP...
Posted: Tue Jun 14, 2005 4:08 am
Hey there,
I've set up a contact form on my clients website. The contact form is submitted to a PHP page containing this:
When I submit the form, the email does not go through into their inbox. I think their server is blocking it... I tested sending it to two of my email addresses and it worked just fine.
Any ideas as to why this is not working? Is theer a better script I could use to stop it from being blocked?
Thanks
Ben
I've set up a contact form on my clients website. The contact form is submitted to a PHP page containing this:
Code: Select all
<?php
$your_subject = "Message from your website's contact form";
$your_email = "info@seapen.net.au";
$inside_mail = "First Name: $fname
Last Name: $lname
Email Address: $email
Address: $address
Phone Number: $phone
Comments: $comments
";
@mail($your_email, $your_subject, $inside_mail, "From: \"$fname\"<$email>\r\nReply-To: $email\r\nX-Sender:$fname using $email\r\nReturn-Path: $email");
header("location: ../contact_thanks.php");
?>When I submit the form, the email does not go through into their inbox. I think their server is blocking it... I tested sending it to two of my email addresses and it worked just fine.
Any ideas as to why this is not working? Is theer a better script I could use to stop it from being blocked?
Thanks
Ben