Bonjour,
Je suis en stage informatique, et on me demande de créer un formulaire d'inscription qui envoi un mail en fin d'inscription.
J'ai créé un fichier test.php pour tester cette fonction, voilà le contenu :
$destinataire="[email protected]";
$sujet="salut";
$msg="bonjour";
ini_set('SMTP', 'smtp.bouygtel.fr');
ini_set('smtp-port','25');
mail($destinataire, $sujet, $msg);
J'utilise WampServer, en localhost :
Voilà mon fichier, php.ini :
[mail function]
; For Win32 only.
; http://php.net/smtp
SMTP = smtp.bouygtel.fr
; http://php.net/smtp-port
smtp_port = 25
; For Win32 only.
; http://php.net/sendmail-from
sendmail_from = [email protected]
; For Unix only. You may supply arguments as well (default: "sendmail -t -i").
; http://php.net/sendmail-path
;sendmail_path =
; Force the addition of the specified parameters to be passed as extra parameters
; to the sendmail binary. These parameters will always replace the value of
; the 5th parameter to mail(), even in safe mode.
;mail.force_extra_parameters =
; Add X-PHP-Originating-Script: that will include uid of the script followed by the filename
mail.add_x_header = On
; Log all mail() calls including the full path of the script, line #, to address and headers
;mail.log =
Ce matin ça marchait niquel, j'ai fais plein de test et donc plein d'envoi de mail, mais maintenant plus rien. Mon collègue a le même problème et son FAI est free (smtp.free.fr)
Quand je lance le fichier avec Wamp, un page blanche s'affiche (normal aucun echo) mais aucune erreur mais le mail n'est pas dans la boite spécifiée...
Après 2h30 de recherche sur le net, je m'en remets à vous...
J'ai vue qu'il pourrai peu être s'agir d'un pb de spam, mon email serai considérée comme spam, vue le nombre de test qu'on a effectué...
Est-ce que quelqu'un pourrai m'aider ?? Parce que là je commence à perdre espoir...