Fields for all sent to and Copied email addresses

Hi,
I need to be able to add the fields so that when an email is processed and creates a ticket in AutoTask, I can tell everyone the email was sent to even CC’d.

Right now I see these options, but it still isn’t show every the email was sent to.

From: {{email.from.address}}
To: {{email.to.[0].address}} | To: CC {{email.cc.[0].address}}

Hey @nikileverett ,

Thanks for asking here!

Depending on how you want it to be rendered, there are a few ways to do this.


Option 1

You can insert these two lines in your Ticket Description (or other field). This will render a comma-separated list of emails that were included in the To and CC lines of the email:

To: {{implode email.to glue=", " property_name="address"}}
CC: {{implode email.cc glue=", " property_name="address"}} 

That will render something like this:

To: joe@acme.com, jane@acme.com, test@test.com, something@another.com
CC: mary@acme.com

Option 2

If you prefer each to be on their own line, you can change the glue=", " property to glue="\n", like this:

To: 
{{implode email.to glue="\n" property_name="address"}}

CC:
{{implode email.cc glue="\n" property_name="address"}} 

That will render something like this:

To: 
joe@acme.com
jane@acme.com
test@test.com
something@another.com

CC: 
mary@acme.com

Option 3:

If you want to include To: or CC: in front of each line and have them on multiple lines, you can use something a little more complicated, like this:

{{#each email.to}}To: {{this.address}}
{{/each}}
{{#each email.cc}}CC: {{this.address}}
{{/each}}

That will render something like this:

To: joe@acme.com
To: jane@acme.com
To: test@test.com
To: something@another.com
CC: mary@acme.com

I hope this is helpful! Please let us know if you have any additional questions. :slight_smile: