Skip to content
Connector

SMTP (Next-Gen)

Send email with templates and attachments

Send email via SMTP (stdlib smtplib, pydantic-validated, returns a structured result).

@ftnt-dspilleMaintainer v1.0.0 Published Oct 6, 2026
Download .tgz · 20 KB

smtp_ng_1.0.0.tgz

sha256:65b2e7534f5df836ae82ccc49c9989c758b67a3cc17caf01e2a532eaaabefdac
Source repository

Community code that runs on your platform. A maintainer reviewed this exact source; the download is rebuilt from it. Follow the to install it.

Configuration · 8 fields

  • HOST host text required

    Specify the Hostname of the server to which you will connect and execute commands or python scripts.

  • PORT port text required

    Specify the Port number used for connecting to the server.

    Default 25

  • Default From default_from text

    Specify the default email address to be used for sending notifications, emails, etc.

  • Username username text

    Specify the username to access the server to which you will connect and execute commands or python scripts.

  • Password password password

    Specify the password to access the server to which you will connect and execute commands or python scripts.

  • Use TLS useTLS checkbox

    Specify the timeout value after which the connection to the server is dropped.

    Default false

  • Use SSL useSSL checkbox

    Use implicit TLS (SMTPS, typically port 465). Mutually exclusive with Use TLS (STARTTLS).

    Default false

  • Timeout timeout integer required

    Specify the Port number used for connecting to the server.

    Default 10

Operations · 6

  • Send Email (Advanced) 6 params
    send_email_new

    Send an email with Jinja and email template support

    • Recipient Type type select required

      Choose the type of recipient for the email that you want to send. You have the ability to interchangeably send emails in multiple formats by specifying a comma-separated list of email addresses or selecting FortiSOAR™ teams or users, or by reusing team or user information defined in previous playbook steps as Jinja statements. You can choose from the following options: Manual Input, User, or Team. If you choose Manual Input, then you can specify a comma-separated list of email addresses, including email addresses of non-FortiSOAR™ users in the To, CC, and BCC fields. You can also specify the…

      Default Manual Input

      Options Manual InputUserTeam

      When Recipient Type is User

      • To to multiselect required
      • CC cc multiselect
      • BCC bcc multiselect

      When Recipient Type is Team

      • To to multiselect required
      • CC cc multiselect
      • BCC bcc multiselect

      When Recipient Type is Manual Input

      • To to text required

        Comma separated list of email addresses, User IRIs or Team IRIs

      • CC cc text

        Comma separated list of email addresses, User IRIs or Team IRIs

      • BCC bcc text

        Comma separated list of email addresses, User IRIs or Team IRIs

    • From from text

      Specify the email address from which you want to send the email.

    • Body Type body_type select required

      Select the format in which you want to send the email. You can choose from the following options: Plain Text, Rich Text, or Email Template. If you choose Plain Text, then in the Content field, you can specify only plain text. If you choose Rich Text, then in the Content field, you can add formatted content, images, and even custom jinja expressions using Dynamic Values. If you choose Email Template, then the Email Template drop-down list is displayed, using which you can select the template that you want to use to send the email. An existing email template is passed as an input for the email…

      Default Plain Text

      Options Plain TextRich TextEmail Template

      When Body Type is Plain Text

      • Subject subject text
      • Content content textarea required

      When Body Type is Rich Text

      • Subject subject text
      • Content content richtext required

      When Body Type is Email Template

      • Email Template email_templates select required
    • Attachment File Path file_path text

      (Optional) Specify the path of the file that you want to add as an attachment to the email you want to send. NOTE: Use this parameter if the file is present in your FortiSOAR system.

    • Attachment Name file_name text

      (Optional) Specify the name that you want to give to the file when it is attached to the email you want to send.

    • Attachment IRI List iri_list text

      (Optional) Specify an array or comma-separated list of record IRIs of attachments you want to add to the email you want to send. You can specify either a list of file IDs or attachment IRIs; not required if you have specified the attachment file name and file path.

    Returns statusmessage_idfromsubjectrecipientsattachmentsaccepted_count
  • Send Email 6 params
    send_email

    Send Email

    • To Recipients to_recipients text

      Email IDs of the members to whom you want to send the email message from the Exchange account. You must add the email IDs in the CSV or list format. For example, abc@xyz.com, def@lmn.comImportant: You must specify email ID(s) in at least one of the following fields: TO Recipients, CC Recipients, or BCC Recipients.

    • Cc Recipients cc_recipients text

      Email IDs of the members to be added to the CC list of the email message that you want to send from the Exchange account. You must add the email IDs in the CSV or list format.

    • Bcc Recipients bcc_recipients text

      Email IDs of the members to be added to the BCC list of the email message that you want to send from the Exchange account. You must add the email IDs in the CSV or list format.

    • Body body richtext

      (Optional) Message or content of the email that you want to send from the Exchange account.

    • Subject subject text

      Specify the Subject to be added to the email you want to send.

    • Attachment IRI List iri_list text

      (Optional) Specify an array or comma-separated list of record IRIs of attachments you want to add to the email you want to send. You can specify either a list of file IDs or attachment IRIs; not required if you have specified the attachment file name and file path.

    Returns statusmessage_idfromsubjectrecipientsattachmentsaccepted_count
  • Send Rich Text Email (Deprecated) 9 params
    send_richtext_email

    Send Email With Rich Text Content (Deprecated)

    • To to text required

      Semicolon separated list of email addresses

    • CC cc text

      Semicolon separated list of email addresses

    • BCC bcc text

      Semicolon separated list of email addresses

    • From from text
    • Subject subject text
    • Content content richtext required
    • Attachment File Path file_path text

      Path to the file to be added as attachment. Use this if the file is present on the system

    • Attachment Name file_name text

      File would be attached with this name to the email

    • Attachment IRI List iri_list text

      Record IRI of attachments to be added to the email. Could be either file or attachment IRI. Not required if File Path and Attachment Name are used instead

    Returns statusmessage_idfromsubjectrecipientsattachmentsaccepted_count
  • Get Users
    get_users

    Get available Users

    No parameters.

  • Get Teams
    get_teams

    Get available teams

    No parameters.

  • Get Email Templates
    get_email_templates

    Get available email templates

    No parameters.

Something wrong with this item? Sign in to report

Report a problem

Sensitive data, copied content, broken imports, anything that shouldn't be here.

At least 10 characters. Please don't paste the sensitive value itself.0/1000