You're almost there! Please answer a few more questions for access to the Applications content. Complete registration
Interested in joining? Complete your registration by providing Areas of Interest here. Register

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:

Howdy, Stranger!

Log In

To view full details, sign in.

Register

Don't have an account? Click here to get started!