Hi gang,
Long story short:
Recently, one of my clients moved domain registrars, from Netfirms to Godaddy. The website itself, remains on my own server.
On her website, I have a contact form, which lets people give her feedback and hit a submit button. It was working fine until a few days ago. Now it just refuses to send anything to the email address when you hit submit.
I got her to move from Netfirms to Godaddy because there were a few problems with Netfirms and their ip masking. My server has a funky address like 64.45.136.187 and people generally would rather see
www.mycompany.com than those funky numbers. Because Netfirms could not mask a domain with funky numbers, I moved it to Godaddy, which has not given me these problems with other clients.
Can a PHP file suddenly not work? It is a simple php feedback mailer form called companyfeedbackmailer.php and the code is this:
Quote:
<body bgcolor="#FFFFFF">
<?php
if(isset($_POST['submit'])) {
$to = "bertha@highcaloriecakes.com";
$subject = "From highcaloriecakes Website Feedback";
$name_field = $_POST['name'];
$phone_field = $_POST['phone'];
$email_field = $_POST['email'];
$message = $_POST['message'];
$body = "From: $name_field\n Phone: $phone_field\n E-Mail: $email_field\n Message:\n $message";
echo "Thank you for your feedback! Your query has been submitted.";
mail($to, $subject, $body);
} else {
echo "thankyou!";
}
?>
|