It would be good if there was also an option to send users an email before their birthday, for example 7 days before. This is good for sending offers to be used on there Birthday.

Comments

renzge’s picture

Hello
i am also interessted in an option sending an email eg 14 days before birthday (to get present)
king regards
renzge

marcus178’s picture

This would be a massively useful feature maybe some sort of integration with rules

moxwai’s picture

Vote one! i'm interested in this an might have a customer that will pay.

Anonymous’s picture

I need this feature too.
Is there any way with triggers and/or rules to do so or do we have just to wait for the option?
Thanks.

Niklas Fiekas’s picture

Title: Option to send user addition email prior to birthday » Integrate with Rules module (e.g. option to send user addition email prior to birthday)
Version: 6.x-1.0-rc1 » 7.x-1.x-dev
Component: User interface » Code

Bumping to 7.x. This would definitely be useful.

Unless someone volunteers to write a patch or co-maintain the D6 version, this won't happen there.

nevergone’s picture

Component: Code » Code (Birthdays)
Assigned: Unassigned » nevergone
Issue summary: View changes
Status: Active » Needs work
StatusFileSize
new1.66 KB

Initial support with variables.

nevergone’s picture

StatusFileSize
new2.01 KB

Patch formatting

Niklas Fiekas’s picture

Status: Needs work » Fixed

Very nice, thank you!
An extra +1 for fixing this ancient issue.

http://drupalcode.org/project/birthdays.git/commitdiff/43d70bca8b16d015e...

Status: Fixed » Closed (fixed)

Automatically closed - issue fixed for 2 weeks with no activity.

hockey2112’s picture

Can anyone provide some guidance on how to set up a rule that will auto-send an email to any user whose birthday is "today"? Thanks!

lukasss’s picture

Can anyone provide some guidance on how to set up a rule that will auto-send an email to any user whose birthday is "today"? Thanks!

hockey2112’s picture

Here's how I ended up doing it:

1. Go here: admin/structure/trigger/birthdays Assign the "Happy birthday mail" action.

2. Go here: admin/config/system/actions . Click "Configure" next to the happy birthday mail.

3. Edit the subject line, content, etc.

4. Save.

The birthday emails are sent on cron run. I wasn't able to find a good way to test it, so I'm sure a few of my users received birthday emails that needed formatting work, etc. ;)

I would love to handle all of this in Rules... you'd be able to assign it only to certain user roles for purposes of testing, and I think it would give you better fine-tuned control over when the event occurs. Alas, I was unable to figure out how to do so.

lukasss’s picture

thank you very much

lukasss’s picture

Very strange! After all, the title theme written about Rules. Installed this patch created a rule - does not work. Trigger at all strange works - that the letters come, do not come

nevergone’s picture

Cron setup?

lukasss’s picture

frequency of run 5 minutes

lukasss’s picture

Kind of figured out:

Letters are sent to the crown. After sending another memorable moment last run in variable birthdays_last_cron. To properly debug module is necessary at all times to change its value on a year ago)))

Pleased that the rules are working

hockey2112’s picture

I don't understand, how did you get the rules to work?

lukasss’s picture

1. create rules "Current birthdays" with any action
2. install module devel: https://www.drupal.org/project/devel
3. go to http://MY_SITE/devel/variable/edit/birthdays_last_cron
4. there is date in the format unix - last cron run
5. Update this variable: "The current date" - "1 year + 1 day"
6. Run cron - Your rule should work

I hope you understand
Sorry very very very bad my english

igorik’s picture

is there a chance to move the functionality from trigger to rules?