New User Notification e-mail

Install and configure FormaLMS and DoceboCE
Post Reply
marius
FormaLms User
Posts: 74
Joined: Wed Oct 05, 2016 3:59 am
Version: forma.lms 1.4.2

New User Notification e-mail

Post by marius »

Good day.
I'm running forma version 2.3.0 for a client and have an external SMTP mail server setup with the correct settings in the config.php file.

When a new user is created, the user does not receive his notification. I've checked the Event manager and the "user has been created" event is set to Mandatory and the Email tick box is ticked.

All other e-mails from the system is working correctly including the Lost Password / Lost Username e-mails. They are all sent through the mail server and are received by the users. Where could I check for a possible problem or configuration issue?
alfa24
Senior Boarder
Posts: 2165
Joined: Fri Nov 24, 2017 8:45 am

Re: New User Notification e-mail

Post by alfa24 »

What creation are you referring to?
- Self registration by the user himself?
- Registration by admin in the backend?
- Massive registration by admin in the backend?

Is the mail notification missing in all three cases?
Per supporto GRATUITO contattatemi in privato qui
marius
FormaLms User
Posts: 74
Joined: Wed Oct 05, 2016 3:59 am
Version: forma.lms 1.4.2

Re: New User Notification e-mail

Post by marius »

I'm referring to Registration by admin in both single user creation as well as csv upload. The users are created but the notification is not sent.

I've just set the smtp_debug value to 1 - as below and received the following response when importing a CSV:

Mail config:
cfg['use_smtp_database'] = 'off';
$cfg['use_smtp'] = 'on';
$cfg['smtp_host'] = 'mailserver.domain.com'; //changed for security
$cfg['smtp_port'] = '465';
$cfg['smtp_secure'] = 'ssl';
$cfg['smtp_auto_tls'] = 'false';
$cfg['smtp_user'] = 'noreply@domain.com'; //changed for security
$cfg['smtp_pwd'] = 'emails/password';
$cfg['smtp_debug'] = '1'; // Options: debug level 0,1,2,3,...

debug response:
2020-11-26 13:39:47 CLIENT -> SERVER: EHLO mailserver.domain.com
2020-11-26 13:39:47 CLIENT -> SERVER: AUTH LOGIN
2020-11-26 13:39:47 CLIENT -> SERVER: bm9yZXBseUBlbnNpbm8uY28uemE=
2020-11-26 13:39:48 CLIENT -> SERVER: REBya00wMG4vZW5zaW5v
2020-11-26 13:39:48 CLIENT -> SERVER: MAIL FROM:
2020-11-26 13:39:48 CLIENT -> SERVER: RCPT TO:
2020-11-26 13:39:48 SMTP ERROR: RCPT TO command failed: 550-Verification failed for 550-No Such User Here 550 Sender verify failed
2020-11-26 13:39:48 CLIENT -> SERVER: QUIT
2020-11-26 13:39:48 SMTP Error: The following recipients failed: marius@agrikey.co.za: Verification failed for No Such User Here Sender verify failed
marius
FormaLms User
Posts: 74
Joined: Wed Oct 05, 2016 3:59 am
Version: forma.lms 1.4.2

Re: New User Notification e-mail

Post by marius »

I was able to fix the issue. I set all the communication e-mail addresses within the System Configuration -> Settings page on the admin site to exactly the same address as specified within the SMTP config in the config.php file. This seems to have fixed the Verification failed issue.

Thx
User avatar
max
FormaLms Guru
Posts: 2763
Joined: Thu Mar 01, 2012 10:41 am
Version: forma.lms 2.4
Contact:

Re: New User Notification e-mail

Post by max »

Hi Marius,

glad that you solved, let me just specify one thing: when uploading from a .csv, the email can only be sent if you tick the appropriate box upon uploading.
---------------------
Massimiliano Ferrari
Elearnit - Elearning e Knowledge Management
https://www.elearnit.net
https://www.linkedin.com/in/massimilianoferrari
m.ferrari[at]elearnit.net
Skype: m_ferrari_it
alfa24
Senior Boarder
Posts: 2165
Joined: Fri Nov 24, 2017 8:45 am

Re: New User Notification e-mail

Post by alfa24 »

MAIL FROM should be set to a bounce address at your domain, with the destination email encoded in VERP.
RCPT TO gets set to the destination email, <shot@localhost>.

This said, those errors comes from your smtp server and you have to investigate there. Raise the debug level for your mailer, and ensure the mail from is within the domain of the user is authenticating.
Per supporto GRATUITO contattatemi in privato qui
marius
FormaLms User
Posts: 74
Joined: Wed Oct 05, 2016 3:59 am
Version: forma.lms 1.4.2

Re: New User Notification e-mail

Post by marius »

Thank you for the responses - I'll continue to test on our test server with various debug levels. I'd like to keep the responding e-mail addresses separate according to function (as in the System Configuration page) and will update this page with any valuable info.
Post Reply