Skip Navigation

[Resolved] Sending Notification Email Based on CPT Select Field

This thread is resolved. Here is a description of the problem and solution.

Problem:
Sending Notification Email Based on CPT custom Select Field in backend admin

Solution:
There is no such feature available based on which you can send the email notification based on custom dorpdown select option from admin.

You can find proposed solution, in this case, with the following reply:
https://toolset.com/forums/topic/sending-notification-email-based-on-cpt-select-field/#post-876660

Relevant Documentation:

This support ticket is created 6 years, 6 months ago. There's a good chance that you are reading advice that it now obsolete.

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.

Our next available supporter will start replying to tickets in about 2.04 hours from now. Thank you for your understanding.

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 5 replies, has 2 voices.

Last updated by Minesh 6 years, 6 months ago.

Assisted by: Minesh.

Author
Posts
#857051
select-field.PNG

I am trying to send an email notification base on the selected value on the select field of the Client which is a Custom Post Type.

i created a cron job for the task, but my problem is how do i get the selected value of the of all the clients. Here is the code for my cron job:

//add new cron intervals
function add_new_intervals($schedules) 
{
    // add weekly and monthly intervals
    $schedules['weekly'] = array(
        'interval' => 604800,
        'display' => __('Once Weekly')
    );

    $schedules['monthly'] = array(
        'interval' => 2635200,
        'display' => __('Once a month')
    );
 $schedules['daily'] = array(
        'interval' => 60,
        'display' => __('every Hour')
    );

    return $schedules;
}
add_filter( 'cron_schedules', 'add_new_intervals'); 


add_action('my_daily_event', 'do_this_daily' );
function my_task() {
    if ( !wp_next_scheduled( 'my_hourly_event' ) ) {
        wp_schedule_event( current_time( 'timestamp' ), 'daily', 'my_daily_event');
    }
}

add_action('wp', 'my_task');
function do_this_daily() {



  

}

i want to send an email to the client base on the selected value, the values on the select dropdown are daily, weekly and monthly.

#857232

Minesh
Supporter

Languages: English (English )

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

Hello. Thank you for contacting the Toolset support.

Well - As a supporter we have limit to support such request and we are not allowed to give support for such custom edits or code, the help you are asking for is unfortunately fall in our custom programming category which is beyond the scope of our support policy.

If you need custom programming for your project, please feel free to contact our certified partners:
=> https://toolset.com/contractors/

However - I can share here few alternative plugins that may help you. Please check following plugins:
=> https://wordpress.org/plugins/wp-crontrol/
=> https://wordpress.org/plugins/cronjob-scheduler/

#871104

Hi Minesh thank you for the response. Is there a way that toolset can get the selected value on the select field of the Client cpt from the parent cpt? Agency is the parent cpt of the Client Cpt

#872619

Minesh
Supporter

Languages: English (English )

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

#876575

Thank you for the response. This is what i am trying to do, i am trying to create recurring emails (daily, weekly or monthly) to send to authors of a CPT. Maybe having a custom field automatically switch after those durations which could then trigger the CRED auto-notiifcations. Is this possible with using just toolset or do i have to use a plugin to achieve this?

#876660

Minesh
Supporter

Languages: English (English )

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

Well - As you can see with the following Docs:
=> https://toolset.com/documentation/user-guides/automated-email-notifications-with-cred/

You can automate the email notification based on the options listed here:
=> https://toolset.com/documentation/user-guides/automated-email-notifications-with-cred/#send-the-notification-when-submitting-the-form

There is no option to configure CRON to send notification for daily, weekly, monthly basis and that is why I shared few alternative plugins that may help you to setup the CRON. Please check following plugins:
=> https://wordpress.org/plugins/wp-crontrol/
=> https://wordpress.org/plugins/cronjob-scheduler/

The way you want to achieve the notification functionality can be implemented with Toolset but it needs custom programming which is unfortunately beyond the scope of our support policy.

If you need custom programming for your project, please feel free to contact our certified partners:
=> https://toolset.com/contractors/