jack202872
New Member
- Messages
- 13
- Reaction score
- 0
- Points
- 0
Hello, I can not send mail anymore from my website. I've read that there is a new policy and that we have to use a valid mail from our domain. OK but, when i try, it doesn't work. Any explanation or solution ?
---------- Post added at 09:47 PM ---------- Previous post was at 09:44 PM ----------
<?php
$TO = "xxxx@xxxx.fr";
$subject = stripslashes(htmlspecialchars($_POST['sujet']));
$nom = stripslashes(htmlspecialchars($_POST['nom']));
$tel = stripslashes(htmlspecialchars($_POST['tel']));
$texte = stripslashes(htmlspecialchars($_POST['texte']));
$h = "From: xxxx@mydomain.x10hosting";
$message = '' . $texte . '
' . $nom . ', '.$tel.'';
mail($TO, $subject, $message, $h);
Header("Location: merci.html");
?>
---------- Post added at 09:47 PM ---------- Previous post was at 09:44 PM ----------
<?php
$TO = "xxxx@xxxx.fr";
$subject = stripslashes(htmlspecialchars($_POST['sujet']));
$nom = stripslashes(htmlspecialchars($_POST['nom']));
$tel = stripslashes(htmlspecialchars($_POST['tel']));
$texte = stripslashes(htmlspecialchars($_POST['texte']));
$h = "From: xxxx@mydomain.x10hosting";
$message = '' . $texte . '
' . $nom . ', '.$tel.'';
mail($TO, $subject, $message, $h);
Header("Location: merci.html");
?>