Request - Birthday Reminder Email
Genosis
Hello Martin,
I wanted to do the same thing but i learnd there is no easy way to do this. So i made it myself. I made weekly email notofication for upcomeing anniversaries and a list of them for my main page. So, to do this you need a list of events. Unfortunately, jrGenEvents does not have a easy way to make a list for birthdays or other anniversaries because of time coding. Actually you can list them but you cannot say easly "show me is there any anniversary for tomorrow"...
It's not easy but it's possible. Now, i can see a list of certain events of the next 30 days on main page. And system sends email every sunday for the week's anniversaries automatically.
My English is terrible but maybe you find a hint to make it your way.
I have a custom module to find events for the next 7 days. for example, for monday
$monday= date("md", strtotime("+1 day"));
with a jrCore_db_search_items function, you can search "event_date like %$monday"
After that you will need a tamplate for email. Than pass the results to your email template of that seach.
In brief, create a function to search events for specific days > shape them with an email template > send them to your users.
Essential point is, jrGenEvents' time coding like 20170731 for July 31th 2017 but you need the last part 0731. That's becayse i use date function with "md". So you need to seach events like; month is 07 and day is 31. This is the tricky part. When you overcome this you can made other stuff.
PS: Be aware of the privacy settings of Jamroom Core and Genosis Core and User. Those settings can cause your functions fails or your emails sends empty
updated by @melih: 07/31/17 01:14:40PM