Keywords: Moodle - AWS - Technical issue - Email configuration (SMTP)
I have configured my application to be about to sent and receive mail but It still didn't work.
I have fallow this support tool to configure my application : https://docs.bitnami.com/general/apps/moodle/configuration/configure-smtp/
Can Your Instance Connect To The SMTP Server?
telnet smtp.gmail.com 465
Connected to smtp.gmail.com.
Escape character is '^]'.
With also this one : https://docs.bitnami.com/installer/infrastructure/lamp/troubleshooting/send-mail/
sudo /opt/bitnami/php/bin/pear install pear/Net_SMTP pear/Mail-1.4.1
Ignoring installed package pear/Net_SMTP
Ignoring installed package pear/Mail
Nothing to install
But I received an error when executing the script to sent the mail:
sudo /opt/bitnami/php/bin/php /opt/bitnami/php/lib/php/mail-script.php
PHP Notice: Only variable references should be returned by reference in /opt/bitnami/php/lib/php/Mail/smtp.php on line 382
authentication failure [SMTP: Invalid response code received from server (code: 534, response: 5.7.14 https://accounts.google.com/signin/continue?sarp=1&scc=1&plt=AKgnsbu
5.7.14 Please log in via your web browser and then try again.
5.7.14 Learn more at
5.7.14 https://support.google.com/mail/answer/78754 p4sm6732855qkg.48 - gsmtp)]
Here are the content of pear list
Installed packages, channel pear.php.net:
Package Version State
Archive_Tar 1.4.0 stable
Auth_SASL 1.1.0 stable
Console_Getopt 1.4.1 stable
Console_Table 1.1.4 stable
Mail 1.2.0 stable
Mail_Mime 1.10.7 stable
Net_SMTP 1.9.0 stable
Net_Socket 1.2.2 stable
PEAR 1.10.1 stable
Structures_Graph 1.1.1 stable
XML_Util 1.3.0 stable
I have also actived my google acount to support the less security .
Now I didn't know the root ISSUE, Could you please help ?
The Bitnami Support Tool ID is the one below: