The Elearning Community • Email not working
Page 1 of 1

Email not working

Posted: Wed Apr 02, 2025 12:58 pm
by filiprybar
Hi Guys,

We upgraded our test environment FormaLMS from 3.2.1 version to version 4.0.11. Everything works fine, but emails stops working. We followed documentation, we can see mail config menu and all of setting are configured correctly. Email is sent to our email gateway, but in weird format so email gateway will not process it.

This is log from our email gateway FortiMail port 465 with TLS security https://ibb.co/Jw9dgdnf

Port 25 TLS Security (I error logs is nothing)
https://ibb.co/RGxkZMkK
https://ibb.co/6RyKJ320

We tried all possible scenarios but without success.

This is correct email communication from production environment 3.2.1
https://ibb.co/C3Q7vk4m

Any ideas how to fix this problem ?

Thank you very much

Best regards

Re: Email not working

Posted: Wed Apr 02, 2025 2:06 pm
by alfa24
I'm not sure the thing used to work on 3.x in your test env. It's a local instance, so I'm ready to bet your smtp won't accept a local IP (192.168.x) as a relay.
Anyway, it's not a Forma related problem. Please check it out with your email server admin.

Re: Email not working

Posted: Mon Apr 07, 2025 9:01 am
by filiprybar
Hi,

@alfa24 if we actually made a bet, you'd lose.

In the config.php configuration when we turned off the option for smtp to use the database, formalms started sending mails in the correct format and encryption. However, a new problem arose and that is that FormaLMS does not send emails "FROM" from the defined address, but under the user [email protected]. Can you please advise me where to correctly set the "FROM" email address to send from the one I need ?

Thank you in advance

Re: Email not working

Posted: Mon Apr 07, 2025 9:42 am
by alfa24
It means your db settings are wrong.
For the from field, you can set it only when you use the db, otherwise you should go deep in the code.

Re: Email not working

Posted: Tue Apr 08, 2025 1:55 pm
by filiprybar
Could you please provide an example of working DB SMTP settings ?

Thank you

Re: Email not working

Posted: Tue Apr 08, 2025 2:33 pm
by alfa24
No, I can't share personal settings.
Just compile correctly the smtp settings page.