I currently have a rule set up using scheduler which - when a user logs in, a rule component is scheduled to send a mail '+1 week' from this time. This works fine.

However, I need to alter this so when the user logs in - the component mail is scheduled for the 1st of the following month.

Essentially, for example: if a user logs in today 16-06-14 - the component is scheduled to be executed on the 01-07-14.

Any ideas? Not sure how to set the offset. Would this be better via cron instead?

  • I think yes, I had similar requirement.I used hook_cron to send mail notifications to user(s). Jun 16 '14 at 12:48

Try "first day of +1 month" as your scheduled date.


Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.