bonjour
voici les code pour envoyer le mail. quand j'exécute, je reçois le message comme "message sent", mais pas de réception.
----------------------------------------
Code : Sélectionner tout - Visualiser dans une fenêtre à part
1
2
3
4
5
6
7
8
9
10
11
12
13
14 <?php $to = "nom@gmail.com"; $subject = "Hi!"; $body = "Hi,\n\nHow are you?"; if (mail($to, $subject, $body)) { echo "<p>Message successfully sent!</p>"; } else { echo("<p>Message delivery failed...</p>"); } ?>
--------------------------
Code : Sélectionner tout - Visualiser dans une fenêtre à part
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16 php.ini [mail function] ; For Win32 only. ; http://php.net/smtp SMTP = localhost ; http://php.net/smtp-port smtp_port = 25 ; For Win32 only. ; http://php.net/sendmail-from sendmail_from = null ; For Unix only. You may supply arguments as well (default: "sendmail -t -i"). ; http://php.net/sendmail-path sendmail_path = null
quelles sont les problèmes? aidez-moi svp.
Je n'utilise pas PEAR, Je ne sais pas utiliser. faut-il obligatoirement utiliser PEAR?
Partager