Email notifications aren't sent

Email notifications aren't sent

by john john -
Number of replies: 1
Email notifications from moodle aren't sent. On the logs I get:


Event name: Email failed to send

Description: Failed to send an email from the user with id '' to the user with id '' due to the following error: "SMTP connect() failed. https://github.com/PHPMailer/PHPMailer/wiki/Troubleshooting".

In the page "Outgoing mail configuration" I tried to use google smtp server

SMTP hosts: smtp.gmail.com:465

SMTP security: SSL

SMTP Auth Type : Login

SMTP username - password: I fill my credentials.

I tried also smtp.gmail.com and security none but nothing was sent. Do you have any idea why is this happening?

Thank you!


Moodle version 3.2.1

Average of ratings: -
In reply to john john

Re: Email notifications aren't sent

by john john -
The problem was that the ports 25, 465, 587 was blocked. I opened them and the emails are sent now.