Contact Us

If you still have questions or prefer to get help directly from an agent, please submit a request.
We’ll get back to you as soon as possible.

Please fill out the contact form below and we will reply as soon as possible.

  • Contact Us
  • Home
  • API, CLI, and SDK Documentation
  • REST API Documentation
  • Administration Tools and Settings Using REST API
  • SMTP Server Configuration Using REST API

Configuring the SMTP Server Using REST API

Learn how to configure an SMTP server using REST API.

Written by Andrea Harvey

Updated at April 28th, 2025

Contact Us

If you still have questions or prefer to get help directly from an agent, please submit a request.
We’ll get back to you as soon as possible.

Please fill out the contact form below and we will reply as soon as possible.

  • Insights
    Prebuilt Insights Custom Insights
  • Content
  • Accounts
  • Activity Log
  • Content Scans
  • Migrations
    Migration Jobs Migration Reports Maps Flagged Items Migration Tools
  • Connections
    Supported Platform Connections Creating Connections Connection Maintenance Connection Pools
  • Entity Types
    DryvIQ Available Entity Types Custom Entity Types Entity Type Maintenance
  • Action Sets
    Creating Action Sets Action Sets Maintenance
  • Settings
    License Performance Notifications Extensions Entity Types Settings Display Settings Configuration
  • API, CLI, and SDK Documentation
    REST API Documentation Command-line Interface SDK Development
  • POC Offering
  • Release Notes
+ More

Table of Contents

Overview Configure the SMTP Server Example Body

Overview

Configuring the SMTP server determines the mail server and account that will be used to generate the global email notifications. Once you add the information, you can test the connection to ensure no additional settings need to be added for the notifications to work.

DryvIQ uses MailKit, which includes a default server certificate validation for a list of commonly used mail servers such as gmail.com, outlook.com, mail.me.com, yahoo.com, and gmx.net.

Notifications cannot be set up on an SMTP server that has an untrusted SSL certificate. The environment where DryvIQ is running needs to trust the certificate. This can be done by manually trusting the certificate or using a valid self-signed certificate.

 
Field Description Required
host This is the fully qualified domain name of the SMTP service. Required
port In most cases, the SMTP service port will be port 587; however, ports 25 or 465 may be utilized but are not preferred. For more information on SMTP ports, see here: https://www.socketlabs.com/blog/what-port-does-smtp-use/  
socketoptions

Add the value that corresponds to the encryption to be used:

  • 0: No SSL or TLS encryption should be used.
  • 1: Allow the mail service to decide which SSL or TLS options to use.
  • 2: The connection should use SSL or TLS encryption immediately.
  • 3: Elevates the connection to use TLS encryption immediately. This is the default option. This setting will also accept -1 as a value. If you are unsure of what option you need, use -1.
  • 4: Elevates the connection to use TLS encryption immediately but only if the server supports STARTTLS extension.

Optional

(If no value is set, -1 will be set.)

from The default sender. If not specified, the username will be used. Required if a username is not provided.
username The STMP server username. This could be your email address depending on the service. Required if your mail server requires authentication.
password The SMTP service password. This could be your email address depending on the service. Required if your mail server requires authentication.
type Should be smtp-configuration.  

Configure the SMTP Server

Execute a PATCH to configure the email handler to receive notifications. This request configuration will persist. To execute a test, which will not persist, see Send a Test Email Notification | REST API. 

PATCH {{url}}v1/notifications/handlers/email

Example Body

{
  "from": "string",
  "host": "string",
  "links": {
    "{name}": {
      "href": "string",
      "method": "string",
      "title": "string"
    }
  },
  "password": "string",
  "port": 587,
  "socketoptions": -1,
  "type": "smtp-configuration",
  "username": "string"
}

 

smtp server rest api

Was this article helpful?

Yes
No
Give feedback about this article

Related Articles

  • DryvIQ Platform REST API Documentation
  • Adding a Notification Recipient Using REST API
  • Sending a Test Email Notification Using REST API

Copyright 2025 – DryvIQ, Inc.

Knowledge Base Software powered by Helpjuice

Expand