CC-3110 : Password reset
added sender email to preferences form, created db upgrade script.
This commit is contained in:
parent
cf2813a545
commit
0b3809c379
9 changed files with 79 additions and 20 deletions
|
@ -12,20 +12,10 @@ class Application_Model_Email {
|
|||
*/
|
||||
public static function send($subject, $message, $tos, $from = null)
|
||||
{
|
||||
/*
|
||||
$configMail = array( 'auth' => 'login',
|
||||
'username' => 'user@gmail.com',
|
||||
'password' => 'password',
|
||||
'ssl' => 'ssl',
|
||||
'port' => 465
|
||||
);
|
||||
$mailTransport = new Zend_Mail_Transport_Smtp('smtp.gmail.com',$configMail);
|
||||
*/
|
||||
|
||||
$mail = new Zend_Mail('utf-8');
|
||||
$mail->setSubject($subject);
|
||||
$mail->setBodyText($message);
|
||||
$mail->setFrom(isset($from) ? $from : 'naomi.aro@sourcefabric.org');
|
||||
$mail->setFrom(isset($from) ? $from : Application_Model_Preference::GetSystemEmail());
|
||||
|
||||
foreach ((array) $tos as $to) {
|
||||
$mail->addTo($to);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue