Skip Navigation

[Resolved] Time/trigger an email based on a date field in a post

This is the technical support forum for Toolset - a suite of plugins for developing WordPress sites without writing PHP.

Everyone can read this forum, but only Toolset clients can post in it. Toolset support works 6 days per week, 19 hours per day.

Sun Mon Tue Wed Thu Fri Sat
- 10:00 – 13:00 10:00 – 13:00 10:00 – 13:00 10:00 – 13:00 10:00 – 13:00 -
- 14:00 – 18:00 14:00 – 18:00 14:00 – 18:00 14:00 – 18:00 14:00 – 18:00 -

Supporter timezone: Asia/Kolkata (GMT+05:30)

This topic contains 1 reply, has 2 voices.

Last updated by Minesh 1 year, 3 months ago.

Assisted by: Minesh.

Author
Posts
#2648021

I would love to trigger a notification email based on a Date Field in a custom post.

I have Events that have a Date Field (this is the date they occur on).
I would like to send the Author of the Event a canned email reminding them to do things to prepare Two Months Before and then again Two Weeks Before the Event Date.

I can't find anything remotely like this, but maybe I'm missing something? If this is not possible within Toolset, do you have any idea what might be a good integration?

#2648181

Minesh
Supporter

Languages: English (English )

Timezone: Asia/Kolkata (GMT+05:30)

Hello. Thank you for contacting the Toolset support.

Toolset offers post expiration feature where you can setup the post expiration time in number of days/weeks etc..etc.
- https://toolset.com/course-lesson/setting-up-automatic-post-expiration/#enabling-automatic-expiration-of-posts

We can obviously set the custom post expiration time and to do so we can use the "cred_save_data" form hook. So when you add a new post using the Toolset form from the frontend, we can set the newly added post expiration date setting value equivalent to your custom date field.

Then you can add two email notifications to your form one that should fire "Before two months" and "Before two week":
- https://toolset.com/course-lesson/setting-up-automatic-post-expiration/#sending-email-notifications-when-posts-expire

You can select the option "send notification to post author" to send the email to post author for the email notification you created:
- https://toolset.com/course-lesson/send-notifications-when-someone-submits-the-form/#send-different-notifications-to-the-site-admin-and-visitor

#2653011

Thank you!