Fortinet white logo
Fortinet white logo

CLI Reference

system automation-email

system automation-email

Use this command to configure the email notification settings in the Automation feature.

To use this command, your administrator account’s access control profile must have either w or rw permission to the mntgrp area. For details, see Permissions.

Syntax

config system automation-email
  edit <email_name>
    set subject <string>
    set body <string>
    set email-policy <email_policy_name>
  next
end
Variable Description Default

<email_name>

Enter the name of the email. You can reference it in a stitch. No default.

subject <string>

Enter the subject of the email to be sent.

No default.

body <string>

Enter the email body. Simple string and two parameters are supported:

  1. %%log%%: All fields from the log event triggering this stitch.
  2. %%results%%:The complete result from previous action, such as CLI script.
No default.

Related topics

system automation-email

system automation-email

Use this command to configure the email notification settings in the Automation feature.

To use this command, your administrator account’s access control profile must have either w or rw permission to the mntgrp area. For details, see Permissions.

Syntax

config system automation-email
  edit <email_name>
    set subject <string>
    set body <string>
    set email-policy <email_policy_name>
  next
end
Variable Description Default

<email_name>

Enter the name of the email. You can reference it in a stitch. No default.

subject <string>

Enter the subject of the email to be sent.

No default.

body <string>

Enter the email body. Simple string and two parameters are supported:

  1. %%log%%: All fields from the log event triggering this stitch.
  2. %%results%%:The complete result from previous action, such as CLI script.
No default.

Related topics