Home Forums Front-end Issues Email trigger to post author on date time picker?


Email trigger to post author on date time picker?

  • I have an ACF frontend form on my website. I want to be able to trigger automatic emails (or texts in an ideal world) to the post author (user who fills out the form) with certain ACF fields, on a certain date and time. i.e. if I was a user filling this out:

    (ACF) Name Field: John Doe

    (ACF) Content Field: This is the notes section. Bla bla.

    (ACF) Date time picker: 21st may, 2020. 11 pm.

    (ACF) Send reminder?: Y


    Is there a way for an email (or again, text, ideally) to be sent out automatically on the 21st of May at 11 pm with certain ACF fields? (e.g. Name, Content) Without me (admin) actually having to do this manually?

    I’m not super familiar with PHP yet but any advice would go a long way. Thanks.

  • Basically, you need to create a CRON.

    You can do this in WP, however, if your site does not get a lot of traffic the notifications may not go out on time as it requires a page on the site to be loaded to trigger the cron

    CRON jobs can also, usually, be set up on hour hosting to run at specific interval and these are more reliable.

    In the code you’d need to do queries to find all of the notes that need to be sent and then send the emails.

Viewing 2 posts - 1 through 2 (of 2 total)

The topic ‘Email trigger to post author on date time picker?’ is closed to new replies.