modification appel methode mail

This commit is contained in:
Michael RICOIS 2010-02-15 10:17:47 +00:00
parent 50990d5a90
commit 32520e8649

View File

@ -59,14 +59,14 @@ function graydon_messageSoapFault(){
*/ */
function graydon_mailSoapFault($message){ function graydon_mailSoapFault($message){
$mail = new PHPMailer(); $mail = new PHPMailer();
$mail->From = "contact@scores-decisions.com"; $mail->IsSendmail();
$mail->FromName = "Serveur SD-13408"; $body = $message;
$mail->Host = "mail.scores-decisions.com"; $body = eregi_replace("[\]",'',$body);
$mail->Mailer = "smtp"; $mail->AddReplyTo('contact@scores-decisions.com','Serveur SD-13408');
$mail->Subject = "Erreur SOAP - (Date :".date("d")."/".date("m")."/".date("Y").")"; $mail->SetFrom('contact@scores-decisions.com','Serveur SD-13408');
$body = $message; $mail->AddAddress(EMAIL_SUPPORTDEV, 'Support');
$mail->MsgHTML($body); $mail->Subject = "Erreur SOAP - (Date :".date("d")."/".date("m")."/".date("Y").")";
$mail->AddAddress(EMAIL_SUPPORTDEV, "Support"); $mail->MsgHTML($body);
if(!$mail->Send()) { if(!$mail->Send()) {
graydon_logSoapFault($mail->ErrorInfo); graydon_logSoapFault($mail->ErrorInfo);
} }