Skip Navigation

[Resolved] Notification Emails not Sending but Tests are OK

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.

This topic contains 30 replies, has 3 voices.

Last updated by Nigel 7 months ago.

Author
Posts
#2687241

Our Form Notifications are not sending anymore on form ID's 9224,9225,9214,25102.

There is some additional code in the Snippets plugin regarding the update of the notifications, but this was working fine until about 2 months ago and then it stopped working.

Test notification emails are being sent as can be seen the Fluent SMTP plugin.

volunteer.blackburnempire.com

#2687260

Minesh
Supporter

Languages: English (English )

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

Hello. Thank you for contacting the Toolset support.

That is really strange. Have you modify any code or have you change any notification settings?

Can you please tell me the steps that should trigger the email notification as well as share admin access details.

*** Please make a FULL BACKUP of your database and website.***
I would also eventually need to request temporary access (WP-Admin and FTP) to your site. Preferably to a test site where the problem has been replicated if possible in order to be of better help and check if some configurations might need to be changed.

I have set the next reply to private which means only you and I have access to it.

#2687275

Minesh
Supporter

Languages: English (English )

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

Ok - Can you please sharer details where I can test the email notification and what email notification you configured and not working.

Additionally - if you are using any email notification hook please share details where you added that.

#2687279

An example would be:

Head to hidden link

You will see a volunteer offer from Rob Wilkinson at Pending Status.

If you click on FOH button (which is form 9214) It should update the Offer to Accepted and the email notifications in form 9214 are set to send 36 hours before the show date of Sun 21st Apr 2024 @ 5:00 pm

It uses code that you helped us create some time ago in the snippets plugin here: hidden link from line 156 to update the trigger date for the notification.

Relevant code:
// Set email date for volunteer reminders

// add post expiration date base on user date

// add_action( 'parent_post_id', 'parent_post_id_shortcode',10,2);
// function parent_post_id_shortcode( $atts ) {
// global $post;

// get the parent Post ID
// $parentpostid = toolset_get_related_post($post_id, 'opportunity-offer' );

// return $parentpostid;
// }
// $expdate = $parentpostid['wpcf-show-date-and-time'];
// add_post_meta($post_id, '_cred_post_expiration_time', $expdate);

// Update Offer Author with User

add_action('cred_submit_complete', 'save_data_form_4737',10,2);
function save_data_form_4737($post_id, $form_data) {

// This is the form that updates Post A
if ($form_data['id']==9194||$form_data['id']==9214||$form_data['id']==9225||$form_data['id']==9224) {

$related_post_id = toolset_get_related_post($post_id, 'show-link-to-offer','parent');
$a_expiry = get_post_meta($related_post_id, 'wpcf-show-date-and-time-be', true);

// update expiry date
update_post_meta($post_id, '_cred_post_expiration_time', $a_expiry);
}
}

#2687298

Minesh
Supporter

Languages: English (English )

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

Unfortunately - the admin access details you shared is not working at this end.

Can you please send me working admin access details.

In addition to that - please share frontend user access details if required to access the form from frontend.

I have set the next reply to private which means only you and I have access to it.

#2687301

The login should be working now.

You can access it from the front end on the links I provided with the Admin login.

If you go to hidden link and go to the last show on the list:

Les Miserables (Create theatre)
Sunday 21st April 2024 @ 5:00pm
Arrival Time Before Event: 1 hour 15 minutes

Then click the button "Offer to Volunteer Front of House"

then go to hidden link

and accept the pending offer from Toolset by clicking FOH.

#2687389

Minesh
Supporter

Languages: English (English )

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

Thank you for the access details. The access details now works but unfortunately I still do not able to access the wp-admin.

If I try to access: hidden link
- it redirect back me to the home page: hidden link

Can you please share wp-admin access details.

I have set the next reply to private which means only you and I have access to it.

#2687390

I have just tested this link and it works fine - hidden link

#2687394

Minesh
Supporter

Languages: English (English )

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

That works fine. Please try to login using the access details you shared and you will be redirected on front-section.

I could not able to access the backend admin section using the admin access details you shared.

#2687400

My apologies, I misunderstood.

Please try now.

#2687403

Minesh
Supporter

Languages: English (English )

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

I followed the instructions you given with the reply:
- https://toolset.com/forums/topic/notification-emails-not-sending-but-tests-are-ok/#post-2687301

When I click on the button "Offer to Volunteer Front of House" - it does not redirect me on the page:
- hidden link

Instead -it shows the conditional debug to me.

#2687405

You will need to volunteer as a non-Admin.

If you mark your next reply as private I can send you a login, so you are acting as a volunteer.

#2687408

Minesh
Supporter

Languages: English (English )

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

I have set the next reply to private which means only you and I have access to it.

#2687951

Minesh
Supporter

Languages: English (English )

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

I followed the steps and I found that after clicking on that button "FOH" for item "Toolset Volunteer FOH" I can see the post expiration date is set correctly:
- hidden link

I also checked in post meta that email notification settings are also correctly added.

Could you please add a mail logging plugin to your site and then check if it logs any email once the email notification is triggered.
- https://wordpress.org/plugins/wp-mail-logging/

I tried to send test email and I can see that it's working as expected.

Do you have idea until what Toolset form version you find it working? Is it working with old Toolset Forms version?

Please check if you have any email blocking or:
Could you please try to resolve your issue by deactivating all third-party plugins as well as the default theme to check for any possible conflicts with any of the plugins or themes?
- Do you see any difference?

#2688400

Please keep this call open. We have installed the additional email logging plugin, but will not have to wait for some email notifications to be due.