SMTP Error: Could not authenticate.

Asked by leonelvsc

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 = '<email address hidden>';
$cfg->smtppass = '**************************';

any ideas?

Question information

Language:
English Edit question
Status:
Answered
For:
Mahara Edit question
Assignee:
No assignee Edit question
Last query:
Last reply:

This question was originally filed as bug #670683.

Revision history for this message
Ruslan Kabalin (rkabalin) said :
#1

The bug has been fixed on master and will likely be populated to other versions soon.

In order to use gmail smtp server, in addition to the settings you use, you have to define secure connection protocol:

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

Can you help with this problem?

Provide an answer of your own, or ask leonelvsc for more information if necessary.

To post a message you must log in.