Skip to main content

Posts

Showing posts from June, 2023

Bloomreach Transactional Email API Client

A nonofficial, JavaScript, feature complete, client library for sending transactional emails via Bloomreach . The aim of the bloomreach-transactional-email package is to get you going with the Bloomreach Transactional Email API as quickly as possible. The sendEmail function takes the minimum number of required parameters to send an email. Other parameters are optional. Full details of all the options can be found in the Bloomreach Transactional Email API documentation . bloomreach-transactional-email  uses axios , as a peer dependency, to make HTTP calls. Install npm i -save bloomreach-transactional-email Basic Examples If you have Customer IDs and a default email integration with a sender name and address setup in Bloomreach then you can use the minimum configuration to send an email by specifying a HTML body and a subject: import { sendEmail } from 'bloomreach-transactional-email'; const auth = {     username: '...',    // Your APIKeyID     password: '...',