Sending one email to two support addresses | The place for Zendesk users to come together and share
Skip to main content
December 13, 2021
Question

Sending one email to two support addresses

  • December 13, 2021
  • 14 replies
  • 112 views

Hi!

We have a problem, when user sends an email containing two or more support addresses in the same message, ticket gets created only for the first support address. There is no indication (that I know) that the user was trying to contact other support addresses too.

For example:
a) address for HR
b) address for Payroll questions

So if user sends an email containing both support addresses a) & b), ticket will be created for only support address a). This is actually real life problem, because in our company it is common practice for people to send email to those addresses at the same time. It is common practice to send one email to multiple recipients in general, so we cannot require that people know this, and even if our own workers knew this, people outside of our company would have no idea. I cannot believe other Zendesk users have not run into this problem?

Now our agents have to keep track both the Zendesk and the shared mailbox accounts in order to spot the possible missing tickets.

According to this article we cannot send one message to two different account addresses.
https://support.zendesk.com/hc/en-us/articles/4408881694362-Can-I-send-one-email-to-create-two-different-tickets-in-two-Zendesk-accounts-

But in my testing this does infact seem to work? Using M365 shared mailboxes and IF those two support addresses are in their own seperate Zendesk accounts/instance. If those support addresses are in the same account/instance then Zendesk will just quietly ignore the rest.

For example:
Email -> M365 shared mailbox a -> send to Zendesk account 1
Email -> M365 shared mailbox b -> send to Zendesk account 2

With this setup sending one email to both a) & b) in the recipient list M365 (I guess) will create two separate emails (?) and everything works just fine, user will get two tickets and two notifications from both accounts.

Any ideas what to do to resolve this?

So far only idea that I have is to separate the support address a and b to their own accounts. This of course increases the administrator work, because we have to administrate several different accounts in Zendesk. In our case this would be 5 different Zendesk accounts which is not impossible does seem to defeat the whole idea of having groups and multiple support addresses in one Zendesk instance.

Thanks for any help!

And I am sorry if this is wrong place to post this question!

14 replies

Dave12
Employee
October 29, 2022
Hi Sydney,
 
In this case a ticket would be created in the Zendesk instance listed in the To: addresses, not the one in the CC: addresses.
Gregory12
March 22, 2023

My organization is facing the same problem. We have multiple support addresses, some of which are for city council members. There's no way we can train community members to only send requests to one support address. They typically don't know who to contact for most city issues, so they CC every address they can find. Triage and reassignment helps, but some council members still want a copy of the initial message they were CC'd on, even if it's not theirs to respond to.

I created a proof of concept that's a potential workaround for us...

First, set up a webhook that calls the Zendesk API, using the tickets/create_many endpoint.

Next, set up a trigger that fires when a request is received that includes CCs. Add an action, "Notify active webhook," and dynamically create the JSON body using the Liquid template language to parse the CCs and create a new ticket for each one.

This is the JSON body I'm using:

{
  "tickets": [
        {% for cc in ticket.ccs %}
            {
                "comment": {
                    "body": "{{ ticket.description }}"
                },
                "subject": "{{ ticket.title }} - copy #{{ forloop.index }}",
                "group_id": {% if cc.email == "commissioner1@city.gov" %}1234567890{% elsif cc.email == "commissioner2@city.gov" %}0987654321{% endif %},
                "requester": { "email": "{{ ticket.requester.email }}" }
            }{% unless forloop.last %}, {% endunless %}
        {% endfor %}                
  ]
}

It creates a ticket object for each CC included on the original request and uses the original description, subject, and requester on each copy. I even added logic to assign to certain groups depending on the email address. This isn't ideal, because it means the addresses are hard coded in this obscure piece of config (who's going to remember to update it if the addresses change??), but it does the trick.

You also need to make sure to conditionally add a comma between each object in the tickets array (but not at the end), or the API won't be able to correctly parse the JSON. 

My code assumes that only valid support addresses will be used as CCs. If there's a chance other non-support email addresses may be included, you'll need to wrap this in additional conditional logic to check each address before adding a ticket object to the array for it.

More info about Liquid: https://shopify.github.io/liquid/

Realizing I can call the Zendesk API from a trigger that notifies a webhook was a game changer. Even more when I realized Liquid logic can be used to dynamically generate a JSON payload. Liquid can also be used in notification emails. It's super handy!

This really gets into the weeds, but I hope it helps someone.

 

December 7, 2023

Hi!

We have the same problem at the moment, because it's necessary in some cases to write a mail to multiple Zendesk support adresses and have individual tickets for each adress included. 

Is there a solution in planning? 
Without any solution this is a huge complication for us if we want to implement more teams into Zendesk.

Elaine14
Employee
December 8, 2023
Hi Sarah,

As of today, Zendesk doesn't support the automatic splitting of a single ticket into multiple tickets for different departments. Each ticket usually remains within a specific department or group.
 
However, Zendesk has various functionalities, including ticket sharing or routing rules, which might assist in forwarding a ticket to multiple departments manually or based on predefined conditions.
 
I recommend reaching out to Zendesk's support directly to see if we might have any functionalities or workarounds that address your needs depending on your workflow implementation.