how to get CC address from Incident Creation via mail
Summary:
Hi All,
We have a requirement to store CC email addresses whenever an Incident is created from Email (Service Mailbox).
We tried to extract the CC addresses from the email header using a CPM Incident Create event. Below is the code we are using:
foreach ($obj->Threads as $thread) { if ($thread->MailHeader != null) { $emailHeader = $thread->MailHeader; echo "emailHeader: " . $emailHeader; break; }}
The MailHeader value is returned successfully, but it contains only technical headers such as:
- Return-Path (From email Address)
- Delivered-To
- Received
- X-* headers
However, it does not include the CC: email addresses.
We also tried accessing the thread array using index values:
Tagged:
0