SMTP
Use Bento's SMTP endpoint when your app, framework, or plugin can send email through SMTP but does not support Bento's HTTP Emails API directly.
SMTP submissions are accepted on port 587, upgraded with STARTTLS, parsed, and queued through Bento's transactional email pipeline.
Connection Settings
Configure your SMTP client with:
- Name
Host- Description
yubin.sentbybento.com
- Name
Port- Description
587
- Name
Encryption- Description
STARTTLS
- Name
Authentication- Description
PLAIN
Credentials
Use your Bento site UUID as the SMTP username. Use your Bento publishable key and secret key joined with a colon as the SMTP password.
Username: your-site-uuid
Password: your_publishable_key:your_secret_key
Example:
Username: a1b2c3d4-e5f6-7890-abcd-ef1234567890
Password: bento_publishable_key:bento_secret_key
The SMTP gateway uses:
Usernameas the Bentosite_uuidPasswordas HTTP Basic auth credentials for Bento, split aspublishable_key:secret_key
Message Mapping
Bento converts the SMTP message into a transactional email request.
- Name
MAIL FROM- Description
Used as the sender when provided. The sender must be an author in your Bento account.
- Name
RCPT TO- Description
Each recipient becomes one queued Bento email.
- Name
Subject- Description
Sent as the Bento email
subject.
- Name
HTML body- Description
Sent as
html_bodywhen the SMTP message includes HTML.
- Name
Text body- Description
Used as a fallback when no HTML part exists. Bento escapes the text and preserves line breaks in an HTML wrapper.
- Name
Reply-To- Description
Sent as the Bento email
reply_tovalue.
If a message contains both text/plain and text/html, Bento uses the HTML part.
Optional Headers
Add these headers to control Bento-specific behavior:
- Name
X-Bento-Transactional- Description
Set to
true,1, oryesto mark the email as transactional. Transactional emails may be sent even if the recipient has unsubscribed. Use with care.
- Name
X-Bento-Layout-Id- Description
Applies a Bento layout to the email.
Limitations
- Attachments are not supported. Link to files instead.
- The maximum message size is
10 MB. - A single SMTP message can include up to
50recipients. - The downstream transactional email queue is still subject to Bento's email API rate limits.
- The
Fromaddress must be an author in your Bento account.
Testing
You can verify STARTTLS from a terminal:
openssl s_client -starttls smtp \
-connect yubin.sentbybento.com:587 \
-servername yubin.sentbybento.com
A valid setup should show a certificate for yubin.sentbybento.com and a successful verification result.
To test a real send, configure your SMTP client with the connection settings above and send a message to an address you control.
