Skip to content

Sending profiles API

MethodPathResult
GET, POST/api/smtp/List or create sending profiles
GET, PUT, DELETE/api/smtp/{id}Read, replace, or delete a profile
GET/api/smtp/summarytotal and resource items
FieldMeaning
nameResource name
interface_typeUse SMTP
hostSMTP host, optionally with a port
from_addressSender mailbox, optionally with a display name
username, passwordOptional SMTP credentials; treat returned profile data as sensitive
ignore_cert_errorsWhether to bypass SMTP certificate verification; keep false for normal use
headersArray of objects containing key and value; may be null in legacy data

The response adds id and modified_date. PUT requires a matching id; use If-Match to prevent overwriting a concurrent edit.

This example targets only the canonical local fixture’s mail-capture container:

{
"name": "Local inbox",
"interface_type": "SMTP",
"host": "172.30.53.20:1025",
"from_address": "Training <training@example.test>",
"ignore_cert_errors": false,
"headers": []
}

It is not a public mail server. Use it from the local tutorial, where the application and inbox share the fixture network.

Port 465 uses implicit TLS; other ports negotiate STARTTLS when offered. Authentication is restricted on unencrypted connections. For exact operational behavior and trust choices, read sending profiles.

POST /api/util/test_connection tests a profile-shaped SMTP configuration. POST /api/util/send_test_email sends a message with template, page, profile, URL, and recipient inputs; see imports and previews. A successful SMTP submission means the server accepted responsibility, not that a person received or read the message.