Thank you for your replies:
Here is the code that was working ( and stopped working now) on Hosting Server: boru
It was working with googlemail and yahoo and now I am getting part of code executed that loads contact.php?status=failure, i.e. $sent = false and ,of course, the mail is not being sent. Anyway I was planning to move to paid hosting, so will try maybe this will solve the problem
PHP Code:
<?php
$to = "MYTESTEMAIL@googlemail.com" ;
$name = $_REQUEST['name'] ;
$subject = $_REQUEST['subject'] ;
$email = $_REQUEST['email'] ;
$message = $_REQUEST['message'] ;
$intro = "We have received the following information:\n\n";
$txt = sprintf("%s The message from: %s \n Email: %s \n Message: \n\n %s",$intro,$name,$email,$message);
$headers = "Email from : ". $name;
$sent = mail($to, $subject, $txt, $headers) ;
if($sent)
{
echo "<script type=\"text/javascript\"> location.replace(\"contact.php?status=success\"); //</script>";
}
else
{
echo
"<script type=\"text/javascript\"> location.replace(\"contact.php?status=failure\"); </script>";
}
?>