Schedule email to user using Rule sets

eranglr - November 25, 2008 - 12:07

I am trying to resolve a simple problem - How to send a customized email to user after X days from registration??

Tried using rule sets, but just can't figure out how to use it properly (there is no real tutorial regarding rules set / schedule emails).

also, I am trying to add user a role after x days (for example - after 30 days of been a member, I know that there is a module for drupal 5 called role delay, but I prefer using much more flexible way - RULES).

THANK YOU,
Eran

I haven't done anything like

WorldFallz - November 25, 2008 - 16:29

I haven't done anything like this yet, but my guess is you'd have to select the cron event, then add a condition with custom php that checks the current date/time against the user's registration date/time in order to execute the actions of a sending an email and changing/adding a role.

===
"Give a man a fish and you feed him for a day. Teach a man to fish and you feed him for a lifetime." - Lao Tzu
"God helps those who help themselves." - Ben Franklin
"Search is your best friend." - Worldfallz

Problem is

eranglr - November 25, 2008 - 23:24

add a condition with custom php that checks the current date/time against the user's registration date/time

example-->
did the following:
1. added a new rule
2. called it "send email after 2 days"
3. choose cron event
4. condition: Numeric comparison==> number 1 is [date:site-date-yyyy]
Equal
number 2 is 2008

action: Display a tokenized message to the user. message is: congratulation!

so, when I'm running cron, I don't get this above message..
what am I doing wrong??

---------------------------------------
http://www.designhit.co.il - אתר הסטודנטים לעיצוב של המכון הטכנולוגי חולון

Also, I thought about using

eranglr - November 26, 2008 - 06:48

Triggers to accomplish that..
---------------------------------------
http://www.designhit.co.il - אתר הסטודנטים לעיצוב של המכון הטכנולוגי חולון

i don't see how you could do

WorldFallz - November 26, 2008 - 19:40

i don't see how you could do this with core triggers/actions-- they have far less features than rules.

===
"Give a man a fish and you feed him for a day. Teach a man to fish and you feed him for a lifetime." - Lao Tzu
"God helps those who help themselves." - Ben Franklin
"Search is your best friend." - Worldfallz

I think that with rules it's not possible either

eranglr - November 27, 2008 - 07:53

---------------------------------------
http://www.designhit.co.il - אתר הסטודנטים לעיצוב של המכון הטכנולוגי חולון

It is-- it's just a matter

WorldFallz - November 27, 2008 - 14:25

It is-- it's just a matter of getting the php code right. Sorry, I just don't have the time right now to work it out. If I get a chance to look at it, i'll post back.

===
"Give a man a fish and you feed him for a day. Teach a man to fish and you feed him for a lifetime." - Lao Tzu
"God helps those who help themselves." - Ben Franklin
"Search is your best friend." - Worldfallz

Resolved?

ccdoss - April 24, 2009 - 04:24

Did this issue ever get resolved? I'm trying to do something similar. I looked at autoresponder, which sends e-mail on a schedule. However, it means people need to sign-up for it. I want them to receive e-mails when they sign up. I am also struggling with workflow.

subscribed

Roavei - May 16, 2009 - 10:21

subscribed

 
 

Drupal is a registered trademark of Dries Buytaert.