# sendgrid-liquid-mailer

> A quick way to send an email (via Sendgrid) rendered from a Liquid template.

Latest version **1.1.0** (published 2017-11-30) · MIT license · 0 weekly downloads

## Install

```sh
npm install sendgrid-liquid-mailer
pnpm add sendgrid-liquid-mailer
yarn add sendgrid-liquid-mailer
bun add sendgrid-liquid-mailer
```

## Health

**Score 15/100 (F)** — status: abandoned.

Positive: no vulnerabilities.

Warnings: low downloads; no types; no esm support.

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 1.1.0 |
| Published | 2017-11-30 |
| First published | 2017-11-16 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 4 |
| Known vulnerabilities | 0 (+43 in 2 direct dependencies) |
| Install scripts | no |
| Maintainers | marekweb |

## Links

- npm: https://www.npmjs.com/package/sendgrid-liquid-mailer
- Repository: https://github.com/marekweb/sendgrid-liquid-mailer
- Homepage: https://github.com/marekweb/sendgrid-liquid-mailer#readme
- Issues: https://github.com/marekweb/sendgrid-liquid-mailer/issues
- npm.io page: https://npm.io/package/sendgrid-liquid-mailer

## Dependencies (4)

- [axios](https://npm.io/package/axios.md) ^0.17.1
- [bluebird](https://npm.io/package/bluebird.md) ^3.5.1
- [liquidjs](https://npm.io/package/liquidjs.md) ^2.0.2
- [check-options](https://npm.io/package/check-options.md) ^1.1.0

## Recent versions

- 1.1.0 (latest) — 2017-11-30
- 1.0.0 — 2017-11-30
- 0.1.0 — 2017-11-16

## README

# Sendgrid Liquid Mailer

A quick way to send an email (via Sendgrid) rendered from a Liquid template.

Usage

```js
const SendgridLiquidMailer = require('sendgrid-liquid-mailer');

const mailer = new SendgridLiquidMailer(SENDGRID_API_KEY);
const email = {
    bodyTemplate: `Hello, {{name}}`,
    data: {name: 'world'},
    fromAddress: 'from@example.com',
    fromName: 'Example Sender',
    toAddress: 'recipient@example.com',
    bccAddress: 'bcc@example.com',
    toName: 'A Recipient',
    subjectTemplate: 'You are a winner.'
};

const result = mailer.sendLiquidEmail(email);
```

---
_Source: https://npm.io/package/sendgrid-liquid-mailer · Machine-readable twin of the npm.io package page. Health data is recomputed on every publish._
