Bonsoir,
Je tente d'envoyer des email au format html, mais la fonction mail me renvoie
Warning: mail() [[url=http://localhost/decouvrir_paname/cron/function.mail]function.mail[/url]]: SMTP server response: 554 5.7.1 <xxx@orange.fr>: Recipient address rejected: Missing Authentication in C:wampwwwcheminrelance.php on line 45 |
Code :
$headers ='From: "Youplaboum"<contact@youpla.fr> Content-Type: text/html; charset="iso-8859-1" Content-Transfer-Encoding: 8bit'; $sujet = ''; $msg = '<html> <head> <title> Youplaboum </title> </head> <body> <h1> Coincé ou perdu ? </h1> <p> Bonjour '.$data['surname'].',</p> <p> Tu as l\'air coincé, c\'est balo... </p> <p> Si tu as besoin d\'aide pour déverrouiller la prochaine station, tu peux aller te faire voir. Muhahahahaha.... </p> </body> </html> '; mail($data['email'], $sujet, $msg, $headers) ?>
|
Wamp est configuré ainsi :
[mail function]
; For Win32 only.
; http://php.net/smtp
SMTP = smtp.orange.fr
; http://php.net/smtp-port
smtp_port = 25
; For Win32 only.
; http://php.net/sendmail-from
sendmail_from = xxx@orange.fr
; 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 =
|
Vraiment, je ne comprends pas...
L'adresse email dans le php.ini est mon adresse personnelle chez orange, et je m'envoie le mail à moi-même.
Auriez-vous une idée ?
Merci d'avance
Message édité par Pascal le nain le 16-04-2010 à 22:42:20