[mail function] SMTP = smtp.neuf.fr smtp_port = 25 ; For Win32 only. ; [php.net] sendmail_from = artemus24@live.fr mail.add_x_header = On [SQL]Ceci permet de pouvoir envoyer des messages, par exemple au travers d'un forum comme ceux que l'on peut télécharger gratuitement (phpbb3).
<!DOCTYPE html> <html lang="fr"> <head> <meta charset="ISO-8859-15" /> <title>On test la fonction mail()</title> <link rel="stylesheet" type="text/css" href="Styles.css" /> </head> <body> <?php $to = 'Artemus24 <artemus24@live.fr>'; $subject = 'Test de l\'envoi d\'un message !'; $message = 'Voici un message envoyé depuis un script HTML/PHP !'; $headers = 'MIME-Version: 1.0' . "\n"; $headers .= 'X-Mailer: PHP/' . phpversion() . "\n"; ?> <h1>Envoi d'un message vers l'adresse E-MAIL : <?php echo $to ?></h1> <?php $envoi = mail($to, $subject, $message, $headers); if ($envoi == true) echo "<br /><h1>L'email a été envoyé avec succès.</h1>"; else echo "<br /><h1>échec de l'envoi d'un email</h1>"; ?> </body> </html>C'est juste un test ! N'oublie pas de mettre ton adresse email personnel à la place du mien !
--> smtp.neuf.fr : oui --> smtp.9online.fr : oui --> smtp.alice.fr : non --> smtp.aliceadsl.fr : non --> smtp.aol.com : non --> smtp.bbox.fr : non --> smtp.bouygtel.fr : non --> smtp.lycos.co.uk : non --> smtp.cegetel.net : oui --> mail.club-internet.fr : oui --> smtp.live.com : non --> smtp.evhr.net : non --> smtp.free.fr : non --> smtp.freesurf.fr : non --> smtp.gawab.com : non --> smtp.gmail.com : non --> smtp.myopera.com : non --> smtp.ifrance.com : non ??? --> smtp.laposte.net : non --> smtp.magic.fr : non --> smtp.nerim.net : non --> mail.netcourrier.com : non --> mail.noos.fr : non --> smtp.numericable.fr : non --> smtp.orange.fr : non --> atlantis.powermail.fr : non --> smtp1.sympatico.ca : non --> smtp.sfr.fr : oui --> smtp.tiscali.fr : non --> smtp.freesbee.fr : non --> smtp.wanadoo.fr : non --> smtp.mail.yahoo.fr : non --> smtp.alwaysdata.com : non --> smtp.9business.fr : oui
de: postmaster@mail.hotmail.com à: l'adresse de l'expéditeur. Objet : Delivery Status Notification (Failure) This is an automatically generated Delivery Status Notification. Delivery to the following recipients failed. abcd@yxzt.mnopqC'est logique et l'on peut bien comprendre la raison de cette contrainte.