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){
$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);
}