Install Beta7-dev of 10 January.
Global Configuration - Server - Mail Settings
Set up SMTP using smtp.gmail.com, 587, STARTTLS, SMTP Authentication, a Gmail address and an application specific password, as instructed in the tutorial How do I use Gmail as my mail server?
Click 'Send Test Mail'.
The test mail is sent successfully.
Error message: SMTP Error! Could not authenticate.
Windows 10, Wampserver 3.2.4, Apache 2.4.46a, MySQL 8.0.22, PHP 7.4.13
This function used to work previously and the same settings work now in 3.9.24-rc2 in the same workstation.
The issue is limited to the Send Test Mail function. The SMTP mail settings work all right because an Account Details email was sent and seen in the Gmail Sent folder after a new user was created from the back end.
In spite of the initial issues in an out-of-the-box Beta7-dev site, the Debug function is now writing the details of the SMTP dialogue to the log file. Here is an extract from the log everything.php with the details of the failed authentication attempt after the button Sent Test Mail was pressed. The second file contains the SMTP authentication from the Account Details email. The email addresses were replaced.
Failure: j4-smtp-authentication-error.txt
Success: j4-smtp-authentication-ok.txt
Status | New | ⇒ | Closed |
Closed_Date | 0000-00-00 00:00:00 | ⇒ | 2021-01-10 20:04:38 |
Closed_By | ⇒ | HLeithner |
hello
was this fixed? i migrated to a new server and took that opportunity to update my joomla cms from .21 to .25 and I can't send any test smtp email, despite it's working on the former server.
Please note that there seems to be a separate issue with logging. Global Configuration - Logging - Log Almost Everything was selected, the plugin System - Debug was enabled and mail category selected but no log entries were recorded. The file administrator/logs/everything.php had not even been created.
This comment was created with the J!Tracker Application at issues.joomla.org/tracker/joomla-cms/31981.