Home › Toolset Professional Support › [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.
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
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.
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.
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);
}
}
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.
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.
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.
I have just tested this link and it works fine - hidden link
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.
My apologies, I misunderstood.
Please try now.
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.
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.
I have set the next reply to private which means only you and I have access to it.
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?
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.