Problem with resending confirmation email

Problem with resending confirmation email

by Mahmood Naderan -
Number of replies: 5

Hi

Email setting is working properly and if somebody registers on our website, he/she will get the confirmation email.

However, if someone that hasn't receive the email (for any reason including blocking and so), he tries to login. Now the system shows a message for "resending confirmation email". That button doesn't work. No email is received by the user.

On the live log, I check and only see

Login failed for user 'mahmoodd'. Most likely the password did not match (error ID '3').

I have tried that multiple times. On the other hand, if administrator resends confirmation via browse list of users section, then the email is sent correctly.


Any idea about that?

Average of ratings: -
In reply to Mahmood Naderan

Re: Problem with resending confirmation email

by Ken Task -
Picture of Particularly helpful Moodlers

Kinda hard to guess but suggest setting up a test account with your provider - test account has an inbox - you know login/password and can access that mail. At first, not known to Moodle.   Use that account to sign up for your moodle.

Step through entire process ... and at each step ... check moodle serves logs for apache and for mail.   Mail being relayed to an SMTP server?  Is confirmation message sent? or rejected?   if rejected do logs say/hiint why?

Check that accounts mail for spam?   Anything there were you can look at full header of the message ... which shows origin of the message as well as what service/serves that message ran through.

There is a plugin to help check https://moodle.org/plugins/local_mailtest

'SoS', Ken

In reply to Mahmood Naderan

Re: Problem with resending confirmation email

by Visvanath Ratnaweera -
Picture of Particularly helpful Moodlers Picture of Translators
In reply to Visvanath Ratnaweera

Re: Problem with resending confirmation email

by Mahmood Naderan -
Yes. Normal emails are sent correctly. I can see the sent folder in the Gmail account that it is throwing emails to the users.
Problem is with this specific part. Resending confirmation email when the user tries to log in.

As I said, I, as the administrator, am able to resend confirmation email via "browse list of users" page.

How can I see the output of cron job?
I even removed "/dev/null" from the end of cron command.

According to /var/log/syslog, I see
Mar  9 12:39:01 courseware CRON[35082]: (www-data) CMD (/usr/bin/php  /var/www/html/admin/cli/cron.php )
Mar  9 12:39:02 courseware CRON[35080]: (CRON) info (No MTA installed, discarding output)
Mar  9 12:40:01 courseware CRON[35114]: (www-data) CMD (/usr/bin/php  /var/www/html/admin/cli/cron.php )
Mar  9 12:40:03 courseware CRON[35113]: (CRON) info (No MTA installed, discarding output)
Mar  9 12:41:01 courseware CRON[35155]: (www-data) CMD (/usr/bin/php  /var/www/html/admin/cli/cron.php )
Mar  9 12:41:02 courseware CRON[35154]: (CRON) info (No MTA installed, discarding output)
Mar  9 12:42:01 courseware CRON[35181]: (www-data) CMD (/usr/bin/php  /var/www/html/admin/cli/cron.php )
Mar  9 12:42:03 courseware CRON[35180]: (CRON) info (No MTA installed, discarding output)
Mar  9 12:43:01 courseware CRON[35204]: (www-data) CMD (/usr/bin/php  /var/www/html/admin/cli/cron.php )
M

In reply to Mahmood Naderan

Re: Problem with resending confirmation email

by Mahmood Naderan -
Excuse me, one thing that may help finding the problem.

The page that notifies the user to resend confirmation is in non-English language (Persian that I had set).
Even when I change the language of the login screen. Please see two images below

2


3

I want to change the language of resend window to English.
How can I do that?
In reply to Mahmood Naderan

Re: Problem with resending confirmation email

by Mahmood Naderan -
I checked apache error file and as soon as I click on the resend confirmation email button, I see this entry

[Mon Mar 09 16:34:01.292151 2020] [php7:notice] [pid 36629] [client W.X.Y.Z:61994] [client W.X.Y.Z] https://somewhere Invalid Login Token: nt_mahmood Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/70.0.3538.102 Safari/537.36 Edge/18.18363, referer: https://somewhere/login/index.php