Dear Friends,
I run some PHP scripts to deal with sending forms data to my email adress.
But, my "nice" Host provider upgraded the server to another version of PHP 4
and I notice that now the scripts are not working.
I don't receive the emails anymore.
They say I have to make sure all my code works for PHP 4.23 or later...
My code is very simple and uses the command mail().
I don't know much about PHP, but I guess it should be simple to fix my
problem.
I attached one of my most simple scripts and hoping that you might be able
to help me.
Please help me.
I really must fix this today.
Thank you so much.
example of my code:
<?
$subject = "SNOWBRASIL [Cadastro]";
$message .= ("email = " . $email . "\n");
$headers .= ("From: " . $nome . " <" . $email . ">\n");
$headers .= ("X-Sender: " . $email . "\n");
$headers .= "X-Mailer: PHP\n";
$headers .= "X-Priority: 1\n";
$headers .= ("Return-Path: " . $email . "\n");
$para = ($to . " <" . $recipient . ">");
mail($para, $subject, $message, $headers);
}
?>
Yan