JSPM

  • ESM via JSPM
  • ES Module Entrypoint
  • Export Map
  • Keywords
  • License
  • Repository URL
  • TypeScript Types
  • README
  • Created
  • Published
  • Downloads 356
  • Score
    100M100P100Q100889F
  • License SEE LICENSE IN LICENSE

A nonofficial client library for sending transactional emails via Bloomreach

Package Exports

  • bloomreach-transactional-email
  • bloomreach-transactional-email/dist/index.js

This package does not declare an exports field, so the exports above have been automatically detected and optimized by JSPM instead. If any package subpath is missing, it is recommended to post an issue to the original package (bloomreach-transactional-email) to support the "exports" field. If that is not possible, create a JSPM override to customize the exports field for this package.

Readme

bloomreach-transactional-email

A nonofficial client library for sending transactional emails via Bloomreach.

Install

npm i -save bloomreach-transactional-email

Basic Example

import { sendEmail } from 'bloomreach-transactional-email';

const auth = {
    username: '...',    // APIKeyID
    password: '...',    // APISecret
    baseUrl: 'https://api.exponea.com',
    projectToken: '...',
};

const campaignName = 'MyCampaign';

const customerIds = {
    registered: '3232eroofs23fsdsd'
};

const htmlContent = {
    html: '<!DOCTYPEhtml><body>Hello world</body></html>',
    subject: 'SubjectExample',
}

const email = '...';
const senderName = '...';
const senderAddress = '...';

await sendEmail(
    auth,
    campaignName,
    customerIds,
    htmlContent,
    {        
        email,
        senderAddress,
        senderName,
    } // options
);

API Docs

https://documentation.bloomreach.com/engagement/reference/transactional-email-2