Is mail feature in v11.28 working with Gmail? #6004
-
I put all SMTP settings to \chamilo\app\config\mail.conf.php and try to send mail when I give the comments to the assignment as below. But the student haven't receive the comments by email. Here is what the settings I put it. $platform_email['SMTP_FROM_EMAIL'] = '[email protected]'; //See the function __construct() in main/inc/lib/notification.lib.php for more details on how the SMTP FROM email is defined and what to indicate here if needed to override users configuration |
Beta Was this translation helpful? Give feedback.
Replies: 3 comments 1 reply
-
Check error log and it said Any idea? |
Beta Was this translation helpful? Give feedback.
-
Anyone can help? |
Beta Was this translation helpful? Give feedback.
-
Hi @Ringoinmel Sorry for the late answer. I haven't tried gmail for a long time so I cannot guarantee it works but: If you set SMTP_DEBUG = 1 in mail.conf.php (do that at a time of less usage because it does print debug info on screen), you should be able to load the "E-mail tester" screen from the admin panel and test sending a few mails, then seeing what the PHP error log tells you (which will be more detailed). Also, for Amazon, for example, it is required to have SMTP_UNIQUE_SENDER = 1. Might be useful. In the configuration you posted above, and despite the comment on the right side that specifically says "mail, sendmail or smtp", you used 'smtp.gmail.com' for $platform_email['SMTP_MAILER']. This would be my first guess. |
Beta Was this translation helpful? Give feedback.
Hi @Ringoinmel
Sorry for the late answer. I haven't tried gmail for a long time so I cannot guarantee it works but:
If you set SMTP_DEBUG = 1 in mail.conf.php (do that at a time of less usage because it does print debug info on screen), you should be able to load the "E-mail tester" screen from the admin panel and test sending a few mails, then seeing what the PHP error log tells you (which will be more detailed).
Also, for Amazon, for example, it is required to have SMTP_UNIQUE_SENDER = 1. Might be useful.
In the configuration you posted above, and despite the comment on the right side that specifically says "mail, sendmail or smtp", you used 'smtp.gmail.com' for $platform_email['SMTP_MA…