Hi there - I am sorry but I have little knowledge of php but have a mailer.php file on the website that I maintain. The idea is that the user of the website completes a registration form and when they click on the submit button three things should happen, a confirmation e-mail is sent to their mail box, a message appears on the screen to say that the application has been accepted and a second e-mail should be sent to the e-mail address associated with the website. However, the third (and most vital part ) of this transaction has just stopped working ie we are not receiving any applications. I have not made any change to the mailer.php file or the HTML page which interfaces with it. Can somebody kindly suggest what may have caused it the cease functioning?? Many thanks
mailer.php :-
?
$webmaster = "EMAIL REMOVED - Send PM to This User Instead";
$sender = "EMAIL REMOVED - Send PM to This User Instead";
$headerwebmaster = "Enquiry";
$bodywebmaster = "$title $name $surname ($email) wrote:
$message";
$headersender = "The British Club of the Taunus e.V.";
$bodysender = "Thank you for your interest in our site. \n Your Message was:\n $message\n";
$failedmail = "Sorry, your e-mail address is wrong. Please go back and try again.";
$space = "Sorry, you have not filled in all the required fields.";
$sent = "Your enquiry was sent successfully.";
$delivered = "A confirmation e-mail has been sent to you.";
if ($name == "" || $surname =="" || $email =="" || $message =="")
{
echo "$space";
}
else
{
if (ereg("[a-zA-Z0-9-]+(.[a-zA-Z0-9-]+)*@([a-zA-Z0-9-]+.)+([a-zA-Z]{2,3})$", $email))
{
mail("$webmaster","$headerwebmaster","$bodywebmaster\n","FROM: $sender\n");
if ($receipt == "yes")
{
mail("$email","$headersender","$bodysender","FROM: $webmaster\n");
echo "$delivered";
}
else
{
echo "$sent";
}
}
else
{
echo "$failedmail";
}
}
?>