In some cases (configurations, situations) sending a registration email will fail.
If email verification is required, this is a major problem, because the user cannot login.
Additionally, the user is being highly irritated by the combination of both a warning and an okay message.
He will check his email account and find nothing, and in the meanwhile he might have clicked away, and doesn't remember the exact wording. So he will probably retry registering, only to find out that his username has now been taken. That's pretty frustrating - will he ever come back?
One approach would be to check at least on install whether the mailserver works. That would be very useful as well. Still, sendmail can stop working for some reason.
So what we can do now is:
-
- Don't tell the user a mail was sent if it was not.
- should be obvious.
-
- Give the user appropriate information on what to do or be quiet and inform the admin.
- is a bit problematic, because we don't know if and how the admins wants to be reached, so we can't just hand out an email address or such. So for now the best we can do is to stay quiet and inform the admin via watchdog. It would be awesome though if we had a drupal_set_message queue for admins.
Enclosed is a patch that accomplishes this. It's surely not ready or RTBC, rather it is meant to be a starter for the discussion.
| Comment | File | Size | Author |
|---|---|---|---|
| #2 | userRegistrationFail.png | 21.14 KB | Tor Arne Thune |
| user_mail_notify_failed.patch | 7.13 KB | pancho |
Comments
Comment #2
Tor Arne Thune commentedStill an issue in 7.x. Should be changed in 8.x at least. See attached screenshot for the messages.
Comment #3
jhedstromThis is a feature request. Marking as postponed due to inactivity and tagging for an IS update.
Comment #6
dddave commentedComment #18
smustgrave commentedClosing as outdated since this was moved to PNMI 7 years ago
If still a valid request please reopen with a new issue summary
Thanks!