FlowPro Docs
  • What is FlowPro?
  • Guides
    • Installing FlowPro
    • Creating your first script
    • Managing Settings
    • Exporting a script
    • Environment and World
    • System Variables
    • Examples and Samples
      • Simple Calculator
    • Extras
      • Readme
      • Audit Check
  • FlowBlocks
    • Common terms
    • General
      • Start
      • End Block
      • Comment
      • Variable
      • File Function
      • Include File
      • Wait a little
      • Bulk Assign
      • Open a File
      • Unique String ID
      • Play a File
      • Break Execution
      • Parse Markdown
      • Parse String as Object
    • Builder
      • Form Settings
      • Readme
      • Render Label
      • User Simple Input
      • User Simple Input (2)
      • User Long Text Input
      • User Simple Number Input
      • User Dropdown
      • User Checkbox
      • User Date Input
      • User Date/Time Input
      • User Time Input
      • User Filename Input
      • User Button Action
      • User Button Build Form
      • Clear Form
      • View
    • Inputs
      • Short Text Input
      • Long Text Input
      • Numerical Input
      • Fetch as HTML/Json
      • Read Excel as Array
      • Read XML file
      • Parse XML Data
      • Read File As String
      • Read Dir
    • Output
      • Send Email
      • Save to Excel
      • Write to file
      • Pipe Output
      • Output in Window
      • Echo Message
      • Output Results to View
      • Display Data Table
      • Print World
    • Arrays and Objects
      • Filter an Array
      • Get Value by index
      • Get Value by key
      • Create an Object
      • Unpackage Object/Array
      • Create an Array
      • Array Push
      • Add to object
      • Object/Array Length
    • Strings
      • Split Text
      • Find and Replace
      • Character Count
      • String Length
      • Prepend / Append
      • Concat
      • Concat and Assign
      • Right Trim
      • Left Trim
      • Trim
      • To Lowercase
      • To Uppercase
      • Left (Before String)
      • Right (Before String)
      • Matches by Regex
      • Split Text By Line
      • To String
      • Line Break
      • Join Strings
      • Template String
    • Loops
      • Loop by number
      • Loop by Input
      • End Loop
      • While Do
    • Conditionals
      • If Do
      • If Else
      • If Null
      • If Not Null
      • If Exists in World
      • Multiple IF Do
      • If String Contains
      • End If
    • Numeric
      • Add Values
      • Subtract Values
      • Multiply values
      • Divide Values
      • Sum of Numbers
      • Round Number
      • Ceil
      • Random Number
      • Increment Number
      • Decrement Number
      • Modulus
    • Math
      • POW
      • Math.Ceil
      • Square Root
      • Sin
      • Cos
      • PI
      • Math Constants
    • HTML
      • Paragraph
      • Create Simple HTML Table
      • ImageListView Widget
      • Display Data Table
    • Files
      • Read File
      • File Base Name
      • IF File Exists
      • IF Path is File
      • IF Path is directory
      • Copy File
      • Move File
      • File Attributes
      • Create a Folder
    • Commands
      • Basic Command
      • Long Command
    • Database
      • MySQL Query
      • MySQL Query with Params
      • SQL Server
      • SQLITE Query
    • File Transfer
      • FTP Upload
      • FTP Download
      • FTP List Files
      • SFTP List Files
      • SFTP Upload
      • SFTP Download
  • Use Cases
    • For Programmers
      • Connection to an API
    • For the Office
      • Creating an Simple Report
  • Extras
    • Special Variables
    • Keyboard Shortcuts
Powered by GitBook
On this page
  • Description
  • Properties
  • Returns
  • NPM Package
  1. FlowBlocks
  2. Output

Send Email

Send an Email message

Description

Send an email using the parameters.

Properties

Connection String

Add a query string with the connection options for your mail provider.

  • host - the host of the mail server e.g. smtp.gmail.com for Gmail

  • port - the port number. The default is 25. Others include 465, 2255

  • user - the connection username

  • password - the connection password

// example connection string
host=smtp.mailtrap.io&port=34&user=username&password=pass

Additional Connection Settings

  • tsl_rejectUnauthorized - Used to reject a TLS connection if unauthorized. Default is false

  • ignoretls - if this is true and secure is false then TLS is not used even if the server supports STARTTLS extension (from node mailer docs)

  • requiretls - if this is true and secure is false then Nodemailer tries to use STARTTLS even if the server does not advertise support for it. If the connection can not be encrypted then message is not sent (from node mailer docs)

  • secure - if true the connection will use TLS when connecting to server. If false (the default) then TLS is used if server supports the STARTTLS extension. In most cases set this value to true if you are connecting to port 465. For port 587 or 25 keep it false (from node mailer docs)

To

Send the email to this email address. This can be a string, variable or a comma delimited string.

Subject

The subject of the email. This can be a string or a variable

Body

The body of the email. This can be HTML or plain text or variable

From

The email address that is sending this email. Defaults to no-reply@flowpro.com

Attachments (string | variable)

The file path to attach to this email. This can be a string, variable or comma separated string.

Returns

Returns the body of the email if successful and the error if it is not successful.

NPM Package

PreviousOutputNextSave to Excel

Last updated 3 years ago

This block uses node mailer for more information view the documentation.

node mailer