ChristopherBolt.Com logo

Transactional Email API

Use our platform to send all your transactional emails

Transactional emails are emails sent to a single recipient rather than a mailing list. Examples of transactional emails include account notifications, event notifications, order confirmations, purchase receipts and password reminders. You can use our transactional email API to send these types of emails from your website or app.

$client = new \GuzzleHttp\Client();
$headers = [
    'X-API-KEY' => '{{API-KEY}}',
    'Content-Type' => 'application/json'
];
$body = json_encode([
    "email" => [
        "to_name" => "John Doe",
        "to_email" => "[email protected]",
        "from_name" => "Jane Doe",
        "from_email" => "[email protected]",
        "subject" => "This is the email subject",
        "body" => base64_encode('<html><body>Test email message</body></html>'),
        "send_at" => date('Y-m-d H:i:s')
    ]
]);
$request = new \GuzzleHttp\Psr7\Request('POST', 'https://app.boltmail.nz/api/transactional-emails', $headers, $body);
$res = $client->sendAsync($request)->wait();

Example code above in PHP, for other language examples and full documentation please visit developer.boltmail.nz

Transactional emails must still comply with the Unsolicited Electronic Messages Act, the Privacy Act and all other applicable laws. The Transactional Email API may only be used for sending transactional emails, use of the transactional API to send bulk email of any kind is prohibited. To send bulk email use the campaigns API.