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: [email protected], [email protected], [email protected], [email protected]
CC: [email protected]
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:
[email protected]
[email protected]
[email protected]
[email protected]
CC:
[email protected]
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: [email protected]
To: [email protected]
To: [email protected]
To: [email protected]
CC: [email protected]
I hope this is helpful! Please let us know if you have any additional questions.