Home › Toolset Professional Support › [Resolved] How to set BCC using form email notification
Problem:
How to set BCC using form email notification
Solution:
You can use the Toolset form's hook "cred_notification_recipients" to set the bcc for your email notification.
You can find the proposed solution in this case with the following reply:
=> https://toolset.com/forums/topic/ive-got-to-go-to-sleep-but-need-someone-to-work-on-existing-tickets/#post-1871519
Relevant Documentation:
=> https://toolset.com/documentation/programmer-reference/cred-api/#cred_notification_recipients
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.
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)
Tagged: Content-submission forms, Toolset Forms
Related documentation:
I've got to go to sleep but need someone to work on existing tickets.
How do I get back on to the instant chat for sorting issues out? My site has currently been off Google Ads due to the issues with your forms. I need these issues fixing immediately please, otherwise, I will be forced to stop using Toolset and go with another provider of forms. It should be this difficult to get a simple form to send notifications and work.
our Google Ads have been off for weeks due to the issues with your forms so have lost a lot of money and business as a result. And we can't continue to not run our campaigns because a form is not working*
Hello. Thank you for contacting the Toolset support.
Jamal is off. This is Minesh here and I will try to help you out.
If you will require help in specific timezone, Can you please share the time you are actively available so that we can ask supporter who is working in your timezone actively. We will try to help you out as efficient as we can and try to make sure your questions answered as quickly as possible.
You are welcome to close this ticket and I will start reviewing your other tickets where you will require actual help with your issue.
Ok, please do take ownership of this so I am not left aimlessly waiting and having to explain the same issues countless amounts of times. I'll summarise the remaining issues below to help you to help me. Given that I've been waiting for a fix since Saturday and I am paying for support, I'd like them fixed within the day please.
Issues Remaining:
Site Name: iAutoUK.com
Issue 1: The to, from and reply-to all still say croydon@iautouk.com instead of the customer's email. and thus (see previously sent screenshot). This means when we get an enquiry and click reply it doesn't reply to the customer.
Site Name: iAutoUK.com
Issue 2: Despite selecting the 'Request a Booking form' service required options on the homepage - when it comes through to the hidden link page, it doen't show the drop down of services it should, such as mot, wheel alignment etc... instead it shows Car Servicing, then BMW Servicing, Audi Servicing, Skoda Servicing and so .... which is incorrect.
Site Name: iAutoUK.com
Issue 3: To Jamal I wrote: I tried to capitalize on the placeholders you entered into the subject field by attempting to add the 'marque' (make of the car selected) and the @service.enquiry - but it didn't come through. Perhaps I did it wrong?
Site Name: iAutoUK.com
Issue 4: I wrote to Jamal: 'Also not sure if you're working on the issues, but all the pages within the About Us Nav Menu drop down including the 'Get A Quote' page (when you click go from the homepage) now have a different font from what it should be. if you check any of the servicing pages, you will see the difference. Please can you ensure this is changed back to be uniform text throughout the site' from before you started working on the site?
Site Name: Fogizar.co.uk - (the fix to issue 1 from iAutoUK could quite possibly fix this issue too)
Issue 5: The to, from and reply-to all still say contact@fogizar.co.uk instead of the customer's email. and thus (see previously sent screenshot). This means when we get an enquiry and click reply it doesn't reply to the customer.
Feel free to look through the history on both tickets at all the screenshots to assist you in fixing the issues. Should you require anything else from me, please let me know. Logins for both sites have already been provided to Jamal.
Regards,
Talveer
New threads created by Minesh and linked to this one are listed below:
In terms of timezone. I am in the UK, so it is up to you if you want someone like Christian Cox to jump on these tickets, but i need the issues fixing today. I have waited long enough and quite honestly have been messed around!
Site Name: iAutoUK.com
Issue 2: Despite selecting the 'Request a Booking form' service required options on the homepage - when it comes through to the hidden link page, it doen't show the drop down of services it should, such as mot, wheel alignment etc... instead it shows Car Servicing, then BMW Servicing, Audi Servicing, Skoda Servicing and so .... which is incorrect.
==>
Can you please share details how its incorrect or what could be your expected results. As I can see the URLparams having make=audi and vehicle-service=47687 and that very value is selected within the form for those dropdown fields.
Site Name: iAutoUK.com
Issue 3: To Jamal I wrote: I tried to capitalize on the placeholders you entered into the subject field by attempting to add the 'marque' (make of the car selected) and the @service.enquiry - but it didn't come through. Perhaps I did it wrong?
==>
I've split the ticket and shared the solution there.
Site Name: Fogizar.co.uk - (the fix to issue 1 from iAutoUK could quite possibly fix this issue too)
Issue 5: The to, from and reply-to all still say contact@fogizar.co.uk instead of the customer's email. and thus (see previously sent screenshot). This means when we get an enquiry and click reply it doesn't reply to the customer.
==>
I'll split the ticket and we will take care of this issue with that new ticket.
Hi Minesh,
pls see my annotations below:
Site Name: iAutoUK.com
Issue 2: Despite selecting the 'Request a Booking form' service required options on the homepage - when it comes through to the hidden link page, it doen't show the drop down of services it should, such as mot, wheel alignment etc... instead it shows Car Servicing, then BMW Servicing, Audi Servicing, Skoda Servicing and so .... which is incorrect.
==>
Can you please share details how its incorrect or what could be your expected results. As I can see the URLparams having make=audi and vehicle-service=47687 and that very value is selected within the form for those dropdown fields.
*****>>>> - Please see this video recording of the fault to answer your question: hidden link
Site Name: iAutoUK.com
Issue 3: To Jamal I wrote: I tried to capitalize on the placeholders you entered into the subject field by attempting to add the 'marque' (make of the car selected) and the @service.enquiry - but it didn't come through. Perhaps I did it wrong?
==>
I've split the ticket and shared the solution there.
***>>>>>> - I don't see where this is? Please can you send me a link to the ticket?
Site Name: Fogizar.co.uk - (the fix to issue 1 from iAutoUK could quite possibly fix this issue too)
Issue 5: The to, from and reply-to all still say contact@fogizar.co.uk instead of the customer's email. and thus (see previously sent screenshot). This means when we get an enquiry and click reply it doesn't reply to the customer.
==>
I'll split the ticket and we will take care of this issue with that new ticket.
***>>>>>> - I don't see where this is? Please message me when you are taking care of it in another ticket.
Thanks for your help Minesh.
Site Name: Fogizar.co.uk - (the fix to issue 1 from iAutoUK could quite possibly fix this issue too)
Issue 5: The to, from and reply-to all still say contact@fogizar.co.uk instead of the customer's email. and thus (see previously sent screenshot). This means when we get an enquiry and click reply it doesn't reply to the customer.
==>
Can you please share access details for Fogizar.co.uk and I will try to apply the same fix that I've appplied to iAutoUK.
Unfortunately the admin access details you shared for the site fogizar.co.uk/wp-admin is not working at this end.
Can you please send me working admin access details.
I have set the next reply to private which means only you and I have access to it.
Thank you.
I've added the following code to "Custom Code" section within the "toolset-custom-code" snippet:
hidden link
function func_set_notification_headers( $headers, $formid, $postid, $notification_name, $notification_number ) { // setting reply to for "Customer notification" email notification if (($formid==4782 or $formid==4354) && $notification_name=='Enquiry: Customer') { $myheaders = array( 'Reply-To: contact@fogizar.co.uk' ); return array_merge($headers, $myheaders); } // setting reply to for "Admin notification" email notification if(($formid==4782 or $formid==4354) && $notification_name=='Enquiry: Admin') { $user_provided_email = get_post_meta($postid,'wpcf-enquiry-email',true); $myheaders = array( 'Reply-To:'.$user_provided_email ); return array_merge($headers, $myheaders); } return $headers; } add_filter('cred_mail_header', 'func_set_notification_headers', 10, 5); add_filter('cred_notification_recipients', 'func_setup_bcc_notification_emails', 10, 4); function func_setup_bcc_notification_emails($recipients, $notification, $form_id, $post_id) { // Check notification name matches target notification if ( isset($notification['name']) && 'Enquiry: Admin' == $notification['name'] and ($formid==4782 or $formid==4354)){ // Add a BCC to log@emailaddress.com $recipients[] = array( 'to' => 'bcc', 'address' => 'info@hopltd.co.uk', 'name' => '', 'lastname' => '' ); } return $recipients; }
Can you please confirm it works at your end now.
Hi, thank you. I'm waiting for the customer to confirm. it might take some time for them to get back to me. whilst im on the topic though, did you do it for both forms in question? if not, please can you do it for both:
one is on: hidden link
and the other is on: hidden link
On the 2nd one, the captcha doesn't seem to load for me and just allows me to tick the captcha and submit it, without needing to pass the challenge. can you pls fix it so the recaptcha shows?
Also, whilst im waitng for the customer to get back to me, can you please fix the iautouk issues asap?
Yes - as you can see with the code I shared:
=> https://toolset.com/forums/topic/ive-got-to-go-to-sleep-but-need-someone-to-work-on-existing-tickets/#post-1871519
The added code will be applicable to both the forms.
Now, I request you to create a new ticket with your every question you may have. This will help other users searching on the forum as well as help us to write correct problem resolution summery for original issue.
We can not continue one ticket and solve different issues within one ticket. I hope this makes sense.
hi, i have already created multiple tickets and explained the same issues and listed them several times. I will not be creating a ticket my side, but you can if you want. The issues are displayed above. Please do whatever you need to, to fix the issues. please fix them asap. I have waited several times.
Also, regarding Fogizar, please fix the Recaptcha issue.