From 32520e864953739727af58450dcb74c996adca96 Mon Sep 17 00:00:00 2001 From: Michael RICOIS Date: Mon, 15 Feb 2010 10:17:47 +0000 Subject: [PATCH] modification appel methode mail --- includes/graydon/graydon_error.php | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) diff --git a/includes/graydon/graydon_error.php b/includes/graydon/graydon_error.php index fe2fd2513..0907d9865 100644 --- a/includes/graydon/graydon_error.php +++ b/includes/graydon/graydon_error.php @@ -59,14 +59,14 @@ function graydon_messageSoapFault(){ */ function graydon_mailSoapFault($message){ $mail = new PHPMailer(); - $mail->From = "contact@scores-decisions.com"; - $mail->FromName = "Serveur SD-13408"; - $mail->Host = "mail.scores-decisions.com"; - $mail->Mailer = "smtp"; - $mail->Subject = "Erreur SOAP - (Date :".date("d")."/".date("m")."/".date("Y").")"; - $body = $message; - $mail->MsgHTML($body); - $mail->AddAddress(EMAIL_SUPPORTDEV, "Support"); + $mail->IsSendmail(); + $body = $message; + $body = eregi_replace("[\]",'',$body); + $mail->AddReplyTo('contact@scores-decisions.com','Serveur SD-13408'); + $mail->SetFrom('contact@scores-decisions.com','Serveur SD-13408'); + $mail->AddAddress(EMAIL_SUPPORTDEV, 'Support'); + $mail->Subject = "Erreur SOAP - (Date :".date("d")."/".date("m")."/".date("Y").")"; + $mail->MsgHTML($body); if(!$mail->Send()) { graydon_logSoapFault($mail->ErrorInfo); }