Choosing SMTP or REST
- Use SMTP when you have existing software, a framework mailer, or a tool that already sends over SMTP. It’s the fastest way to route that mail through mailkube.
- Use the REST API when you’re writing application code and want a simple JSON request, a message id in the response, and structured errors. Scheduled sending is a REST-only feature: an SMTP submission is always transmitted right away.
How a send works
1
Connect
Open a connection to
smtp.mailkube.com on port 587 and upgrade to TLS with STARTTLS. See Connection.2
Authenticate
Authenticate with your SMTP credential (username and password). See Authentication.
3
Send
Submit the message. The
From domain must match the domain your credential is bound to.