par
ouckileou » 12 sept. 2005, 14:39
C:\wamp\Apache\php.ini :
[mail function]
; For Win32 only.
SMTP = smtp.wanadoo.fr
; For Win32 only.
;sendmail_from =
[email protected]
; For Unix only. You may supply arguments as well (default: "sendmail -t -i").
;sendmail_path =
et voici comment j'envoie un mail :
$subject = 'Erreur sur '.SITE;
$headers = 'From: shyrka@'.SITE."\r\n" .
'Reply-To: '.EMAIL_ADMIN."\r\n";
$message = "Erreur sur ".$fichier." à la ligne ".$ligne."\n";
$message .= $numErreur." : ".$msgErreur;
mail(EMAIL_ADMIN, $subject, $message, $headers);
C:\wamp\Apache\php.ini :
[quote]
[mail function]
; For Win32 only.
SMTP = smtp.wanadoo.fr
; For Win32 only.
;sendmail_from =
[email protected]; For Unix only. You may supply arguments as well (default: "sendmail -t -i").
;sendmail_path =
[/quote]
et voici comment j'envoie un mail :
[php]
$subject = 'Erreur sur '.SITE;
$headers = 'From: shyrka@'.SITE."\r\n" .
'Reply-To: '.EMAIL_ADMIN."\r\n";
$message = "Erreur sur ".$fichier." à la ligne ".$ligne."\n";
$message .= $numErreur." : ".$msgErreur;
mail(EMAIL_ADMIN, $subject, $message, $headers);
[/php]