OpenMail 1.0
Send the emails of your apps through a REST API, with SMTP profiles and HTML templates you manage in a web interface.
Getting started
-
Introduction
What OpenMail is, what it does and where to start.
-
Install from source
Download OpenMail, install its dependency and start it.
-
First start
Protect the admin interface with a primary access token and find your way around.
Email setup
-
SMTP profiles
Create a profile with its sender address and SMTP server.
-
Profile layout
The HTML frame that wraps every email of a profile.
-
Templates
Create the emails your apps send, with a subject, an identifier and a group.
-
Template markup
Put your data into the email with markup, a sample model, helpers and images.
-
Test emails
Check the SMTP connection of a profile and send a test of a template to yourself.
Sending
API access
-
API tokens
Create a token for every app that sends email through OpenMail.
Administration
-
Configuration
Change the name of the app and the primary access token.
-
Import and export
Copy profiles and templates to another installation with JSON files.
-
Back up your data
Which files hold your data and how to copy them safely.
-
Run in production
Start OpenMail in release mode and protect it on a public server.
REST API
-
REST API overview
The endpoints your apps call, how to send the token and what comes back.
-
Send an email
POST / sends one email with a template: the fields, the defaults and examples.
-
Attachments
Attach files to an email by URL or by uploading them with multipart/form-data.
-
List profiles
GET /profiles/ returns the profiles and templates with their identifiers and sample data.
-
Errors
The status codes and error messages of the REST API and what to do about them.
Configuration
-
SMTP options
The JSON options of the SMTP configuration field of a profile.
-
Admin interface addresses
The addresses of the admin interface and of the public files.
Recipes
-
Send from Node.js
A small Node.js function that sends an email through OpenMail and reports errors.
-
Move to another server
Move OpenMail with all profiles, templates, tokens and logs to a new server.
FAQ
-
Access and tokens
Questions about the primary access token and API tokens.
-
Sending emails
Questions about emails that do not arrive or do not look as expected.