Project

General

Profile

Feature #2980

Add the ability to use phpmailer secure functionality in PhpmailerMail

Added by Goulwen Reboux over 8 years ago. Updated over 8 years ago.

Status:
New
Priority:
Normal
Assignee:
-
Start date:
02/03/2011
Due date:
% Done:

0%

Estimated time:
Complexity:
Normal

Description

The PhpmailerMail located in common/libraries/php/mail/phpmailer/phpmailer_mail.class.php can't handle a secure parameter, for example to use with Gmail SMTP.

To allow this, just replace this code

if ($phpmailer_config['SMTP_AUTH'])
{
    $mail->SMTPAuth = 1;
    $mail->Username = $phpmailer_config['SMTP_USER'];
    $mail->Password = $phpmailer_config['SMTP_PASS'];
}

with

if ($phpmailer_config['SMTP_AUTH'])
{
    if (isset($phpmailer_config['SMTP_SECURE'])) {
        $mail->SMTPSecure = $phpmailer_config['SMTP_SECURE'];
    }
    $mail->SMTPAuth = 1;
    $mail->Username = $phpmailer_config['SMTP_USER'];
    $mail->Password = $phpmailer_config['SMTP_PASS'];
}

Then in common/libraries/php/mail/phpmailer/phpmailer.conf.php just add

$phpmailer_config['SMTP_SECURE'] = "ssl";

Associated revisions

Revision 86e537ca (diff)
Added by Julio Montoya about 8 years ago

Using base64 path instead of simple path when dealing with server with apache reestrictions see #2980

History

#1

Updated by Stefaan Vanbillemont over 8 years ago

  • Project changed from Chamilo LCMS Connect to Repository
  • Category deleted (21)
#2

Updated by Stefaan Vanbillemont over 8 years ago

  • Target version set to 2.1.0
#3

Updated by Stefaan Vanbillemont over 8 years ago

  • Target version changed from 2.1.0 to 55
#4

Updated by Stefaan Vanbillemont over 8 years ago

  • Target version changed from 55 to Backlog (default)

Also available in: Atom PDF