Posted by roball on March 13, 2009 at 9:36am
2 followers
Jump to:
| Project: | Account reminder |
| Version: | 6.x-1.1 |
| Component: | Code |
| Category: | support request |
| Priority: | normal |
| Assigned: | Unassigned |
| Status: | closed (fixed) |
Issue Summary
Can this module be used to only send mails to users that have never logged in so far?
Comments
#1
From the project page:
"Account reminder is a simple module that will resend the welcome email to users who have registered with the site but have not yet logged in."
So the module should already do what you are looking for...if you meant something different let me know.
#2
oops - sorry Jeff - I indeed meant something different. I have only users synchronized from an LDAP server and thus disallow self-registration. In my search through all currently 114 User management modules for Drupal 6 I was looking for a way to
(1) Send out a mass mail to all users not logged in so far containing their username and instructions how they can receive a password.
(2) Force password change on first login
I have asked at http://drupal.org/node/400338 and http://drupal.org/node/400774 for issue (2) and accidently made some copy& paste mixup here when I attempted to ask for issue (1). So could you please let me know if (1) is possible with your module?
Thanks a lot.
#3
The users that you have now, how are they added to Drupal? The way the Account Reminder module works is to run a query on the Drupal users table and find users who have been created but have not logged in yet. These users are found by looking at the login column of the users table. That login column will be 0 until a user logs in for the first time.
The mail that is sent out by this module is configurable but is pretty much what you are asking for in (1).
Here is an example with the URLs blanked out:
ar_test,
This is a reminder from (website). You have registered for a user account but have not yet validated your email address. To fully activate your account at (website) login use the following username and password:
username: ar_test
password: csNDtb5n9a
You may also log in by clicking on this link or copying and pasting it in your browser:
http://(website)/user/reset/5/1237360998/ea1b9c2172e12330eae45076cd3efc45
This is a one-time login, so it can be used only once.
-- (website) team
You can stop receiving these reminder emails by either activating your account, or using the unsubscribe link below:
http://(website)/account-reminder/5/6a1549dba61f5a983eaa060c6f8fff7a
#4
I only have users synchronized from an LDAP server. Adding new users is only possible by admins using the LDAP provisioning module. I have now found a way to achieve my goal: I just need to block all users temporary and then unblock them back. This automatically send out an email to all users, like this:
test,
Your account at (site name) has been activated.
You may now log in by clicking on this link or copying and pasting it in your
browser:
https://(domain)/drupal/user/reset/(uid)/1237720205/cdf1ad2c150631d7d84beb9beaec5d40
This is a one-time login, so it can be used only once.
After logging in, you will be redirected to
https://(domain)/drupal/user/(uid)/edit so you can change your
password.
Once you have set your own password, you will be able to log in to
https://(domain)/drupal/user in the future using:
username: test
This works perfectly for me, since it does not send a password per email - which I consider as a No Go security hole. And it also forces the user to create a password.
I haven't figured out so far where the text of such an e-mail can be configured. There are e-mail settings at admin/user/settings for notifying users on blocking their account, but not for unblocking. Strange, but works perfect.
#5