chamilo / chamilo-lms

Chamilo is a learning management system focused on ease of use and accessibility
https://chamilo.org
GNU General Public License v3.0
798 stars 480 forks source link

Mail not sending since 1.11.20 #4764

Closed RobinKal closed 1 year ago

RobinKal commented 1 year ago

Describe After the migration from 1.11.18 to 1.11.20, mails stopped to be sent. PHPMailer works as intended, we tried with a test script file.

To Reproduce Steps to reproduce the behavior:

  1. Use the same configuration (app/config/mail.conf.php) on both versions
  2. Send a mail through the app
  3. Check web server logs

Expected behavior Mails being sent to the destinator

Screenshots Nothin is being sent, error is : Got error 'PHP message: ERROR: mail not sent to testmail testmail (*) because of SMTP connect() failed.

**Server

AngelFQC commented 1 year ago

Hi @RobinKal Can you try with the changes from 9180710?

RobinKal commented 1 year ago

Hi, I applied the fix and it works ! Thank you

Coursenligne commented 1 year ago

Hi I confirm, it works fine. Many thanks for the fix.

riesaau commented 1 year ago

I am also having this issue on my mac with mail not being sent since upgrading to 1.11.20 I have not applied the fix as yet. That will be technically difficult for me so I'm waiting to see if my host can do it.

riesaau commented 1 year ago

I applied the fix (my host did it for me since I am not a programmer). The reset password no longer gives me a failed message but the email never arrives. Also the announcement tool will only send emails to myself and not to the other emails that it was meant to send to. This issue now seems similar to this one. https://github.com/chamilo/chamilo-lms/issues/3625

riesaau commented 1 year ago

There was a delay but the email reset message eventually came through okay. so it is only the announcement tool which fails to send to anyone else except myself.

riesaau commented 1 year ago

One person on the announcement got the email from the tool besides myself. so I will have to look into the issue more.

riesaau commented 1 year ago

I think it is all working now since the fix. Thank you.

kijorge commented 1 year ago

Have the same problem as mentioned above... I did make the fix as mentioned, and that did actually worked - now able to send mail if someone missing password... Also sending mail - if somebody buy a course (extension buycourses).. But - But.... If I assign a course to a student - it does not send any mail about the assignmet to the course. Also if a student registred to the portal - they dont receive any email - with username and password. Any surgestions ??