Prerequisites
- A thePurplebox account
- A secret API key generated from your dashboard
- A verified sending domain (recommended for best deliverability)
Sending an email
Sending a transactional email requires one API call with three basic parameters:to: A single email address or an array of recipientssubject: The email subject linebody: The message content (plain text or HTML)
- JavaScript
- Go
- Python
- PHP
- Java
- Rust
- Ruby
- C#
- ASP.NET
- cURL