← Back to team overview

mahara-contributors team mailing list archive

[Bug 670683] Re: SMTP Error: Could not authenticate.

 

In order to use gmail smtp server, in addition to the general settings,
secure connection protocol has to be defined:

use either:
   $cfg->smtpsecure = 'ssl';
   $cfg->smtpport = 465;
or
   $cfg->smtpsecure = 'tls';
   $cfg->smtpport = 587;

Once the fix is populated to stable versions, it definitely worth
mentioning it in Installation Troubleshooting wiki page.

-- 
SMTP Error: Could not authenticate.
https://bugs.launchpad.net/bugs/670683
You received this bug notification because you are a member of Mahara
Contributors, which is subscribed to Mahara.

Status in Mahara ePortfolio: Fix Committed

Bug description:
I set this on my config.php and config-defaults.php on the lib folder file



$cfg->smtphosts = 'smtp.gmail.com';
// If you have specified an smtp server above, and the server requires authentication, 
// enter them here
$cfg->smtpuser = 'leonelvsc@xxxxxxxxx';   
$cfg->smtppass = '**************************';


any ideas?





References