What do you do with unverified emails in Drupal? I see some have been unverified for several months.
Is it possible to resend the email or to auto delete them?
I think it is common for all sites that permit public registration but require email verification to get some "unverified" users.
To be honest, I do not think there is much point in resending the verification email. Some people are afraid of their email being harvested for spam purposes, so they register with a bogus or black-hole address they never read. Some may just be typos. And some may be spam-bots that know how to register, but don't have the AI to deal with verification. When learning to deal with this, I tried resending the verification email, but with no results. I think the important thing is to prevent those who use bogus or black-hole addresses from registering in the first place (spammers, like death and taxes, will always be with us).
This is how I deal with this now:
I put text on the "Create new account" page that explain upfront that an verification email will be sent and response will be required - and that failure to comply with this within 48 hours will result in automatic account cancellation. I also have similar language in the body of the verification email that is sent out.
I then cancel accounts that remain unverified after 48 hours.
You can cancel accounts in bulk on the Adminstration/People page. Sort on the column "Last access" and the unverified ones will appear on top. Then tick the ones that are unverified (it says "never" in the "Last access" column), and select "Cancel the selected user accounts" from the drop-down menu.
it is possible to cancel these accounts with automatic tools such as the LoginToboggan module.
But I have never seen anyone explain just how. When I go to the admin page for logintoboggan, it is simplistic and there is no setting to delete inactive or never-activated accounts.
you should try the Logingtoboggon module. it has this feature
- Allow users to login using either their username OR their e-mail address.
- Allow users to login immediately.
- Provide a login form on Access Denied pages for non-logged-in (anonymous) users.
- The module provides two login block options: One uses JavaScript to display the form within the block immediately upon clicking "log in". The other brings the user to a separate page, but returns the user to their original page upon login.
- Customize the registration form with two e-mail fields to ensure accuracy.
- Optionally redirect the user to a specific page when using the 'immediate login' feature.
- Optionally redirect the user to a specific page upon validation of their e-mail address.
- Optionally display a user message indicating a successful login.
- Optionally combine both the login and registration form on one page.
- Optionally have unvalidated users purged from the system at a pre-defined interval (please read the CAVEATS section of INSTALL.txt for important information on configuring this feature!).
- Integrates with Rules module to do various tasks when a user validates via email validation process (see http://drupal.org/node/880904 for an example)
I have put the feature you are looking for in bold.
It's possible to resend the verification email with PHP, using
e.g:
_user_mail_notify('register_no_approval_required', $account);
see _user_mail_notify for other account mail types, e.g status_activated.
To auto-delete you can use
or perhaps also the Rules module, e.g system event "on cron" or as a Scheduled Rules component.