Home›Toolset Professional Support›[Resolved] Split: View list with checkbox for select rows and update selected rows submit broken – emails not working
[Resolved] Split: View list with checkbox for select rows and update selected rows submit broken – emails not working
This support ticket is created 5 years, 1 month 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.
1. Select Home from Menu and then Evalualtion System
2. Then Select 31/05/2019 and Search your for events
3. You will see Wisteria
4. Click Task Link
5. Click Bulk Email Request Delegates
6. You will see the 2 delegate select both
7. Before you do that you could edit or add a delegate to match a email address you can get the notifications
8. You can have the same email address on all of them ust for testing it does send notification to all.
9. when you click the dupdate button
10. you will see this update results form page
11. Tick the email Request button and the send email request button to delegates
12. This will then update the email request flag and trigger the notification to each selected delegate.
Hope this helps
Tony
Hello. Thank you for contacting the Toolset support.
Thank you for sharing the step information. I've added the email log plugin to check and verify if emails are sending or not. I can see that the emails are actually sent. Please check the following email logs;
=> hidden link
Even I got the email on my inbox, please check the following screenshot:
=> hidden link
Do you mean that it does not send multiple emails when you checkmark select all checkbox on the following page?
=> hidden link
- I do not know why I do not see now another entry, at first I used to see two entry with the above URL and now I can only see one entry.
I also see that you are currently working on the site as I see the message when I try to check the Toolset form "Update selected delegates". Can you please tell me at what case the emails are not working and I will try to troubleshoot the issue further.
So on the Update Selected Delegate post form is where the system should run the custom code to bulk update the email request field which should trigger an email notification to each selected delegate.
Currently, it is only sending the email notification just 1 delegate , which is incorrect
It should send to all selected in that loop.
So i have 2 email addresses setup on the delegates
Ok - so as I suspected, the email should be sent to all the selected entries. that's clear.
The custom code handles this is bulk_email_request_update
==>
ok, I see the custom code is added to the "Custom Code" section offered by Toolset where you are updating the custom field "email-request'" field value to 1.
Can you please clarify, why I only see one entry with the following page, it used to be two? hidden link
Do I need to setup/add delegates from the Delegates group available at the bottom of the following page:
=> hidden link
Ok - something really strange happening with your test site.
Let's say, you should try to add the at least three delegates to delegates group at the bottom of the following page:
=> hidden link
Then, try to load the following URL:
=> hidden link
You will see three delegates to send email, now select all three checkboxes to send notification and click on
the button "Dupdate" and then check the checkbox "Email Request" and then click on the button "click to send email request to selected delegates".
The current status;
- I do not see even a single notification send now (did you modified any code? Is your server blocking multiple emails?)
- Strange thing is that, you will notice if you refresh the page:
=> hidden link
- The delegates group will have now only two entry, it should be three as we send the notification to three delegates.
(You will notice if you have two delegates and send email to two delegates, once you send email requires the delegates group will have now one entry - this is really weired)
In addition to that, site is really slow, so to check and troubleshoot this further, I need duplicator copy of your install so that I can install the site on my local test install and troubleshoot this issue further.
My issue is resolved now
The issue was related to the last screen with was the step5 Delegates update form
In the form
[credform]
[cred_field field='form_messages' class='alert alert-warning']
<div class="form-group">
<div><label>Ticking the email request box will send an Email Request to all the delegates you selected</label></div>
<div><label>Once you have ticked email request box click the button below to send requests and update delegate records</label></div>
<div style="display:none">[types field='delegate-email' output='raw'][/types]</div>
[cred_field field='email-request' force_type='field' class='form-control' output='bootstrap']
</div>
I had not put the field
<div style="display:none">[types field='delegate-email' output='raw'][/types]</div> on the form, so in the email notification the field for the email TO delegate-email was not not shown in the dropdow list.
I had added the field , but set it not to display on the form .
This not works and sends to all selected delegates.