Link to home
Create AccountLog in
Programming

Programming

--

Questions

--

Followers

Top Experts

Avatar of Vladimir7719
Vladimir7719🇷🇺

Moodle External SMTP Problem
Hi,
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.


Avatar of Frosty555Frosty555🇨🇦

Change your smtp host to simple "smtp.com", not "mail.smtp.com".

Avatar of Vladimir7719Vladimir7719🇷🇺

ASKER

This is not work for me. Any other idea?

SOLUTION
Avatar of owner66owner66

Link to home
membership
Log in or create a free account to see answer.
Signing up is free and takes 30 seconds. No credit card required.
Create Account

Avatar of Vladimir7719Vladimir7719🇷🇺

ASKER

hi,
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.

Reward 1Reward 2Reward 3Reward 4Reward 5Reward 6

EARN REWARDS FOR ASKING, ANSWERING, AND MORE.

Earn free swag for participating on the platform.


Avatar of Paul SauvéPaul Sauvé🇨🇦

Hi Vladimir,

Have you had a look here Moodle Email settings?

Avatar of Vladimir7719Vladimir7719🇷🇺

ASKER

yes. i did . but how could that help?

Avatar of Paul SauvéPaul Sauvé🇨🇦


Well,  Moodle Email settings says the following:
Currently, the parameter check is too strict to allow this via the Moodle UI; however, MDL-15923 has been created and resolved to address this. Until then, it can be set via phpMyAdmin using a query statement like:
 UPDATE mdl_config SET value='myemailserver.com:587' WHERE name='smtphosts';
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.com:465' WHERE name='smtphosts';

Free T-shirt

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.


Avatar of Frosty555Frosty555🇨🇦

Are you hosting your own moodle on a local server? Or a web host? Or some kind of hosted moodle platform?

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.


ASKER CERTIFIED SOLUTION
Avatar of Vladimir7719Vladimir7719🇷🇺

ASKER

Link to home
membership
Log in or create a free account to see answer.
Signing up is free and takes 30 seconds. No credit card required.

Avatar of Vladimir7719Vladimir7719🇷🇺

ASKER

oo
Programming

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.