Skip to content
This repository has been archived by the owner on Dec 6, 2019. It is now read-only.

Commit

Permalink
enable ssl support for smtp (gapps) fixed #16
Browse files Browse the repository at this point in the history
  • Loading branch information
Nabeel Shahzad committed Mar 22, 2011
1 parent 9bef365 commit c7dd897
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 0 deletions.
1 change: 1 addition & 0 deletions core/app.config.php
Expand Up @@ -204,6 +204,7 @@
Config::Set('EMAIL_SMTP_SERVERS', '');
Config::Set('EMAIL_SMTP_PORT', '25');
Config::Set('EMAIL_SMTP_USE_AUTH', false);
Config::Set('EMAIL_SMTP_SECURE', ''); # must be "ssl" for Google Apps
Config::Set('EMAIL_SMTP_USER', '');
Config::Set('EMAIL_SMTP_PASS', '');

Expand Down
2 changes: 2 additions & 0 deletions core/classes/Util.class.php
Expand Up @@ -245,6 +245,8 @@ public static function SendEmail($email, $subject, $message, $fromname='', $from
$mail->Port = Config::Get('EMAIL_SMTP_PORT');

if(Config::Get('EMAIL_SMTP_USE_AUTH') == true) {
$mail->SMTPAuth = true;
$mail->SMTPSecure = Config::get('EMAIL_SMTP_SECURE');
$mail->Username = Config::Get('EMAIL_SMTP_USER');
$mail->Password = Config::Get('EMAIL_SMTP_PASS');
}
Expand Down
1 change: 1 addition & 0 deletions install/templates/config.tpl
Expand Up @@ -131,6 +131,7 @@ Config::Set('EMAIL_USE_SMTP', false);
Config::Set('EMAIL_SMTP_SERVERS', '');
Config::Set('EMAIL_SMTP_PORT', '25');
Config::Set('EMAIL_SMTP_USE_AUTH', false);
Config::Set('EMAIL_SMTP_SECURE', 'ssl'); # must be "ssl" for Google Apps
Config::Set('EMAIL_SMTP_USER', '');
Config::Set('EMAIL_SMTP_PASS', '');

Expand Down

0 comments on commit c7dd897

Please sign in to comment.