Not getting emails
mellenburg - May 1, 2009 - 01:58
| Project: | Account reminder |
| Version: | 6.x-1.1 |
| Component: | Miscellaneous |
| Category: | bug report |
| Priority: | normal |
| Assigned: | Unassigned |
| Status: | closed |
Jump to:
Description
I installed this module and set the initial reminder and subsequent reminder interval to 1 day. I created a new account, set the status to active, assigned it a password and checked send email. The new user received the email with the one-time login link. The user did not click on the link nor did he login to the system. My understanding is that an email should have been generated the next day reminding him to login. Is that the way this module is supposed to work? If so, any idea why those emails aren't being received? Thank you,
Matt

#1
Follow up based on some testing. I ran the section of code that retrieves the inactive accounts, writes records to the account_reminder table, and calls the email subroutine. The code worked, emails were sent, and the table was updated. Do I need to configure something in Drupal to regularly run the account reminder module?
Matt
#2
The code that runs the queries and sends mail is triggered via hook_cron. So the first question is are you running cron?
#3
I'm looking into that. I'm not exactly sure how cron works yet but I am testing something. Since the code isn't the problem this issue can be closed.
#4
this might help: http://drupal.org/cron
#5
One more question, how does cron execute the account reminder function? I'm looking in my cron.php and the only include I see is /includes/bootstrap.inc. I don't see any mention of account reminder in either file.
#6
well the answer requires that you understand a lot more about how Drupal works and it sounds like maybe you are not necessarily at the developer stage yet. I can't really give you specific answers other than that you should take some time to understand how Drupal and modules work. What happens in Account Reminder is not anything special really, it uses the Drupal APIs to accomplish a specific task but doesn't require any code in Drupal core specifically mentioning Account Reminder.
Some documentation to get you going:
http://api.drupal.org/api/group/hooks/6
http://api.drupal.org/api/function/hook_cron/6
#7
*bump* Checking to see if you were ever able to resolve your issues with cron...
I'll close this out in a couple weeks if there's no further response.
#8
I close it for you because obviously this user doesn't know his left from his right and will never find back his own issue :-)