--- title: Accessing email object variables description: An inbound email action script contains the email object to access various pieces of an inbound email through variables. You can use the global variable sys\_email with inbound email actions. locale: en-US canonical_url: https://www.servicenow.com/docs/r/australia/platform-administration/r\_AccessingEmailObjsWithVars.html release: australia topic_type: reference last_updated: "2026-03-12" reading_time_minutes: 2 breadcrumb: [References, Inbound email, Notifications, Configure core features, Administer the ServiceNow AI Platform] --- # Accessing email object variables An inbound email action script contains the email object to access various pieces of an inbound email through variables. You can use the global variable *sys\_email* with inbound email actions.
| Variable | Contents |
|---|---|
| *email.to* | Contains a comma-separated list of email addresses in the To: and Cc: boxes. |
| *email.direct* | Contains a comma-separated list of email addresses in the To: box. |
| *email.copied* | Contains a comma-separated list of email addresses in the Cc: box. |
| *email.body\_text* | Contains the body of the email as a plain text string. |
| *email.body\_html* | Contains the body of the email as an HTML string. |
| *email.from* | Contains an email address that depends on the following conditions:- If the address listed in the email **Headers** field matches an existing user's **Email address**, this variable contains the user's email address. - If the address listed in the email **Headers** field does not match an existing user's **Email address**, this variable contains the address listed in the email **Headers** field. |
| *email.from\_sys\_id* | Contains the Sys ID of the user who sent the email to the instance. |
| *email.fromAddress* | If system property **glide.email.inbound\_action.extract\_from\_header** property is set to true, **origemail** is computed from the headers. The default value is false if the property does not exist. |
| *email.origemail* | Contains the address of the email sender as listed in the email **Headers** field. |
| *email.subject* | Contains the subject of the email as a plain text string. |
| *email.recipients* | Contains a comma-separated list of recipient addresses as a plain text string, in the To: box. |
| *email.recipients\_array* | Contains the recipient addresses as an array. |
| *email.content\_type* | Contains the MIME content type of the email \(for example,*text/plain; charset="us-ascii"* or *text/html; charset="us-ascii"*\). |
| *email.headers* | Contains details about the sender, route, and receiver as a plain text string in the format of the sending email client. |
| *email.importance* | Contains an indication from the sender about how important a message is. The value can be **High**, **Low**, or empty. |