Issue #0001636: separation de smtp - smtpauth, et deplacement de mailbody a motpasseAction()
This commit is contained in:
parent
bc55b878c4
commit
77f10abadb
@ -644,10 +644,23 @@ class UserController extends Zend_Controller_Action
|
||||
|
||||
if ($message == '') {
|
||||
|
||||
$mailbody = '<style type="text/css">table {font-family:Arial, Helvetica, sans-serif; font-size: 12px; width: 550px; border: none;}table td{padding: 4px 8px;}</style>';
|
||||
$mailbody .= "Chers S&D collègues,<br />J'ai oublié mon identifiant et(ou) mot de passe de site web scores-decisions.com.<br />";
|
||||
$mailbody .= "S'il vous plaît envoyez-moi encore une fois l'identifiant et(ou) le mot de passe qui me permettra d'avoir un accès au site.";
|
||||
$mailbody .= "<p>Ci-dessous, trouvez les informations enregistrées sur mon identité:</p>";
|
||||
$mailbody .= "<table><tr bgcolor='#eeeeee'><td width='200px'><strong>Identifiant :</strong></td><td>".$params['identifiant']."</td></tr>";
|
||||
$mailbody .= "<tr><td><strong>Adresse email:</strong></td><td>".$params['email']."</td></tr>";
|
||||
$mailbody .= "<tr bgcolor='#eeeeee'><td><strong>Numéro de téléphone direct:</strong></td><td>".$params['telephone']."</td></tr>";
|
||||
$mailbody .= "<tr><td><strong>Nom:</strong></td><td>".$params['nom']."</td></tr>";
|
||||
$mailbody .= "<tr bgcolor='#eeeeee'><td><strong>Prénom:</strong></td><td>".$params['prenom']."</td></tr>";
|
||||
$mailbody .= "<tr><td><strong>Fonction:</strong></td><td>".$params['fonction']."</td></tr>";
|
||||
$mailbody .= "<tr bgcolor='#eeeeee'><td><strong>Raison Sociale:</strong></td><td>".$params['rsociale']."</td></tr></table>";
|
||||
$mailbody .= "<p>Veuillez agréer, chers collègues, l'assurance de mes sentiments respectueux.</p>";
|
||||
|
||||
require_once 'Scores/Mail.php';
|
||||
$mail = new Mail();
|
||||
$mail->setSubject($name);
|
||||
$mail->setBodyHTML($params['mailbody']);
|
||||
$mail->setBodyHTML($mailbody);
|
||||
$mail->setFrom('support');
|
||||
$mail->addToKey('support');
|
||||
$mail->setReplyTo($params['email']);
|
||||
|
@ -17,7 +17,11 @@ class Mail
|
||||
'password' => $this->config->password);
|
||||
|
||||
$this->mail = new Zend_Mail();
|
||||
|
||||
if ($this->config->method == 'smtp') {
|
||||
$tr = new Zend_Mail_Transport_Smtp($this->config->smtp_host);
|
||||
$this->mail->setDefaultTransport($tr);
|
||||
} elseif ($this->config->method == 'smtpauth') {
|
||||
$tr = new Zend_Mail_Transport_Smtp($this->config->smtp_host, $cnfg);
|
||||
$this->mail->setDefaultTransport($tr);
|
||||
} else {
|
||||
|
Loading…
Reference in New Issue
Block a user