Programming
--
Questions
--
Followers
Top Experts
I am trying to configure Moodle to send out email using external provider SMTP.COM.
So, I set the settings, see a pic attached. But it returns an error "SMTP Error: Could not connect to SMTP host." and does not sent any mail out. Why is that? How to fix it?
moodleSMTP.png
Zero AI Policy
We believe in human intelligence. Our moderation policy strictly prohibits the use of LLM content in our Q&A threads.
Thank for your response!
1. The SMTP works fine within outlook e.g., so it could not be smtp.com problem. I think it is Moodle somehow.
2. WWW.SMTP.com is a mailing provider I use to send reliable and mass mail as Moodle could not sent more the 50 mails per section.
3. I tried all the ports you have mentioned but the result is the same.






EARN REWARDS FOR ASKING, ANSWERING, AND MORE.
Earn free swag for participating on the platform.
Well, Moodle Email settings says the following:
UPDATE mdl_config SET value='myemailserver.com:5
Secure SMTP hosts with SSL/TLS
For SMTP hosts that require secure authentication, SSL or TLS you must run the following query:
UPDATE mdl_config SET value='ssl://myemailserver

Get a FREE t-shirt when you ask your first question.
We believe in human intelligence. Our moderation policy strictly prohibits the use of LLM content in our Q&A threads.
From the link that paul posted, it looks like Moodle sort "sortof" supports specifying a port for the smtp server, requiring a patch to make it work... try just using "smtp.com" instead of "smtp.com:2525", so that it uses the default port 25 for sending email and see if that works.
Also you need to doublecheck that SSL is *not* being used - look in the database using phpmyadmin if necessary. If that SSL parameter that paul posted has been set in Moodle then it won't work, since smtp.com does not support SSL.
Programming
--
Questions
--
Followers
Top Experts
Programming includes both the specifics of the language you’re using, like Visual Basic, .NET, Java and others, but also the best practices in user experience and interfaces and the management of projects, version control and development. Other programming topics are related to web and cloud development and system and hardware programming.