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?
- 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?
I've just set the smtp_debug value to 1 - as below and received the following response when importing a CSV:
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'] = 'firstname.lastname@example.org'; //changed for security
$cfg['smtp_pwd'] = 'emails/password';
$cfg['smtp_debug'] = '1'; // Options: debug level 0,1,2,3,...
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: email@example.com: Verification failed for No Such User Here Sender verify failed
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.
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.