Pipes
2025.9 Pipes
2025.9 Pipes
  • Introduction
  • Configuration
  • Valves
    • API
      • HTTP Response Format Valve
    • Azure
      • Get User
      • Get User Role
      • Is User in Group
    • BankID
      • BidOperation
      • BidToItems
    • Cef event
    • Codecs
      • Base64 Encode
      • Base64 Decode
      • Base64 Converter
    • DateTime
      • Instant Generator
      • Instant Transformer
      • MS Date to Instant Transformer
      • Instant to MS Date Transformer
    • Debug
      • Dump Exports
      • Dump Request
      • Dump Session
      • Dump State
      • Wait
    • Delivery
      • Clean Mobile Valve
      • SMS Valve
      • Voice Valve
      • SMTP Valve
    • EntraID
      • Users
        • Create User
        • Update User
        • Delete User
        • Get User
        • List Users
        • Get Groups
        • List Groups
        • List Direct Reports
        • List Owned Objects
        • Reset Password
      • Groups
        • Create Group
        • Update Group
        • Delete Group
        • List Groups
        • Add Group To Users
        • Remove Group From Users
        • Add User To Groups
        • Remove User From Groups
        • Add Group Owner
        • Remove Group Owner
      • Directory
        • Restore Deleted Item
    • Exports
      • Exports Put
      • Exports Remove
    • Flow
      • Flow Fail
      • Flow State Add
      • Assert Value
      • Pipe Exec
      • Pipe Call
    • Freja
    • HTTP
      • GET
      • PUT
      • POST
      • DELETE
    • Item
      • Item Create
      • Item Merge
      • Item Match Merge
      • Item Remove
      • Items Remove
      • Item Property Add
      • Item Property Copy
      • Item Property Replace
      • Item Property Split
      • Item Property Rename
      • Item Property Hash
      • Item Property Token Replace
      • MV Property To Items
      • JSON To Items
      • MV Property Join
    • JDBC Query
    • JSON
      • JsonObjectCreate
    • JWT
      • CreateJwt
      • ParseJwt
    • LDAP
      • LDAP Search
      • LDAP Group Filter
      • LDAP Bind
      • LDAP Add
      • LDAP Delete
      • LDAP Modify
      • LDAP Move
      • DN Parse
    • Microsoft AD
      • Add Member To Groups
      • Remove Member From Groups
      • Add Group To Members
      • Remove Group From Members
      • GUID to string
    • Misc
      • Basic Auth
    • OTP
      • OTP Generation
      • OTP Validation
    • PKI
      • X509 Certificate Extractor
      • X509 Certificate Validator
      • Passcode Generator
    • PDF
      • Html2Pdf
      • PDFMerge
    • Request
      • RequestParameterExist
      • RequestParameterRename
    • ScriptEval
    • MobilSITHS
    • Session
      • Session Put
      • Session Create
      • CopyFromSession
    • Tokens
      • Token Authentication
    • WorkOrders
      • WorkOrderCreate
Powered by GitBook
On this page
  • Prerequisites
  • Configuration
  • Message Template example
  1. Valves
  2. Delivery

SMTP Valve

Delivers a mail-message.

PreviousVoice ValveNextEntraID

Last updated 24 days ago

Use this valve to send html/plain messages via SMTP.

Prerequisites

Before using this valve the module must be configured and deployed.

Configuration

Valve name: SendBySmtp | SmtpSender

Name
Description
Default value
Mandatory
Expanded

smtp_destination

ID of the internal SMTP client used to talk with the SMTP backend.

"default"

username_parameter

Only used for logging and events.

"${request.User-Name}"

message_parameter

Parameter containing the mail message. Deprecated

N/A

message_template

N/A

subject_parameter

Parameter containing the mail subject.

N/A

mail_from_parameter

Parameter containing the FROM email address.

N/A

mail_to_parameter

Parameter containing the TO email address.

N/A

mail_cc_parameter

Parameter containing the CC email address.

N/A

mail_bcc_parameter

Parameter containing the BCC email address.

N/A

remove_prefixes

Array containing prefixes to be removed from email addresses.

N/A

{
    "name": "SmtpSender",
    "enabled": true,
    "config": {
        "smtp_destination": "default",
        "username_parameter": "${request.username}",
        "subject_parameter": "My Subject",
        "message_template": "C:\\Windows\\Templates\\mail_template.txt",
        "mail_to_parameter": "${item.mail}",
        "mail_from_parameter": "noreply@mycompany.com",
        "mail_cc_parameter": "admin@mycompany.com",
        "remove_prefixes": ["SMTP:","sip:"]
    }
}

Message Template example

Property expansion is supported. All available item and exports properties can be used in the template. In the example below the item property generated_otp_value is generated prior in the pipe.

<html>
<body>
Your one time password is <b>{{item.generated_otp_value}}</b>
</body>
</html>

Path to a message template file. This template always trumps message_parameter. The text in the template is expandable.

See Message Template example
SmtpClient