Accessing email objects with variables An inbound email action script has access to various pieces of an inbound email through script variables. Table 1. Accessing email objects with variables Variable Contents email.to Contains a comma-separated list of email addresses in the To: and Cc: boxes. email.direct email.direct 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.origemail Contains the email sender's address as listed in the email Headers field. email.subject Contains the email's subject as a plain text string. email.recipients Contains a comma-separated list of recipient addresses. 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. Note: The instance follows RFC 2822 (Internet Message Format), which requires multiple email addresses in a group to be separated by commas, not semicolons. The instance can set the values of the email.to, email.direct, and email.copied variables only if email addressed to groups follow the expected RFC format.