Mail : From and To

This commit is contained in:
Michael RICOIS 2017-02-10 16:38:46 +01:00
parent 4b2e22ba21
commit 5f27da2646
4 changed files with 5 additions and 5 deletions

View File

@ -60,7 +60,7 @@ class ErrorController extends Zend_Controller_Action
$mail = new Scores_Mail_Method(); $mail = new Scores_Mail_Method();
$mail->setSubject('[ERREUR APPLICATIVE] - '.$c->profil->server->name.' -'.date('Ymd')); $mail->setSubject('[ERREUR APPLICATIVE] - '.$c->profil->server->name.' -'.date('Ymd'));
$mail->setBodyText($message); $mail->setBodyText($message);
$mail->setFromKey('supportdev'); $mail->setFromKey('support');
$mail->addToKey('supportdev'); $mail->addToKey('supportdev');
$mail->execute(); $mail->execute();
} }

View File

@ -829,7 +829,7 @@ class EvaluationController extends Zend_Controller_Action
"<pre>".print_r($InfoEnq, 1)."</pre>"; "<pre>".print_r($InfoEnq, 1)."</pre>";
$mail = new Scores_Mail_Method(); $mail = new Scores_Mail_Method();
$mail->setFromKey('production'); $mail->setFromKey('supportdev');
$mail->addToKey('support'); $mail->addToKey('support');
$mail->setSubject($sujet); $mail->setSubject($sujet);
$mail->setBodyHtml($texte); $mail->setBodyHtml($texte);
@ -998,7 +998,7 @@ class EvaluationController extends Zend_Controller_Action
'Utilisateur='.$login; 'Utilisateur='.$login;
$mail->setBodyText($texte); $mail->setBodyText($texte);
$mail->setFromKey('contact'); $mail->setFromKey('supportdev');
$mail->addToKey('contact'); $mail->addToKey('contact');
$mail->execute(); $mail->execute();

View File

@ -731,7 +731,7 @@ class UserController extends Zend_Controller_Action
$mail = new Scores_Mail_Method(); $mail = new Scores_Mail_Method();
$mail->setSubject("Demande d'envoi des identifiants"); $mail->setSubject("Demande d'envoi des identifiants");
$mail->setBodyHtmlC($mailbody); $mail->setBodyHtmlC($mailbody);
$mail->setFromKey('support'); $mail->setFromKey('supportdev');
$mail->addToKey('support'); $mail->addToKey('support');
$mail->setReplyTo($params['email']); $mail->setReplyTo($params['email']);
try { try {

View File

@ -3378,7 +3378,7 @@ class WsScores
$mail = new Scores_Mail_Method(); $mail = new Scores_Mail_Method();
$mail->setSubject('[ERREUR SOAP] - '.$c->profil->server->name.' -'.date('Ymd')); $mail->setSubject('[ERREUR SOAP] - '.$c->profil->server->name.' -'.date('Ymd'));
$mail->setBodyTextC($message); $mail->setBodyTextC($message);
$mail->setFromKey('supportdev'); $mail->setFromKey('support');
$mail->addToKey('supportdev'); $mail->addToKey('supportdev');
$mail->execute(); $mail->execute();
} }