Skip to main content

SendEmailReply

This Script is part of the Email Communication Pack.#

The script sends the email to the recipient's list, including the following information:

  • The original email.
  • The name of the sender.
  • The person to reply to.
  • CC addresses, if they exist.
  • BCC addresses, if they exist (Email Threads layout only)
  • Attachments, if they exist.

For the "Email Communication" layout, the email body is taken from the incident 'notes,' and the email subject will contain the incident ID and the incident name.

For the "Email Threads" layout, email message details (recipients, subject, email body, etc) are set in Incident fields, as well as extracted from any previous messages on the same email thread. Outbound email subjects will include a unique message ID and a custom subject line set when the first message in the thread is created.

The script is a part of the Email Communication pack.

Permissions#


This automation runs using the default Limited User role, unless you explicitly change the permissions. For more information, see the section about permissions here: https://docs-cortex.paloaltonetworks.com/r/Cortex-XSOAR/6.10/Cortex-XSOAR-Administrator-Guide/Automations

Script Data#


NameDescription
Script Typepython3
Tags
Cortex XSOAR Version0.0.0

Inputs#


Argument NameDescription
filesThe context path for files.
attachmentThe context path for attachments.
service_mailThe email address the emails are sent from.
mail_sender_instanceName of the mail sender instance name for transmitting emails
new_threadSpecify whether to reply to an existing thread or start a new one. Default value of 'n/a' is for 'Email Communication' type incidents only
body_typeThe type of the email body. Can be either HTML or plain text. Default is HTML.
reputation_calc_asyncWhether to calculate the reputation asynchronously. Default is false.

Outputs#


There are no outputs for this script.

Troubleshooting#

Multi-tenant environments should be configured with the Cortex Rest API instance when using this automation. Make sure the Use tenant parameter (in the Cortex Rest API integration) is checked to ensure that API calls are made to the current tenant instead of the master tenant.