0

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?

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

1 Answer 1

2

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

1
  • Legend, cheers! Commented Jun 16, 2014 at 22:07

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

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