J'ai un problème avec la fonction mail() sur mon hébergement OVH (60gp)
La fonction me renvoie bien 1 donc le problème devrait venir du serveur.
voici le php
Code : Tout sélectionner
$entete="from:[email protected]\r\n"; <<< ????
$entete .= "MIME-version: 1.0\r\n";
$entete .= "Content-type: text/html; charset= iso-8859-1";
$to = '[email protected]';
$subject = 'le sujet';
$message = 'Bonjour !';
mail($to, $subject, $message, $headers);
Mon php ini spécifie ceci :
Code : Tout sélectionner
sendmail_from : [email protected]
sendmail_path : /usr/sbin/sendmail -t -i
SMTP : localhost D'avance, merci