# qup-email-templates

> Render qup email templates

Latest version **1.0.2** (published 2019-09-20) · ISC license · 0 weekly downloads

## Install

```sh
npm install qup-email-templates
pnpm add qup-email-templates
yarn add qup-email-templates
bun add qup-email-templates
```

## 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.0.2 |
| Published | 2019-09-20 |
| First published | 2019-09-20 |
| Weekly downloads | 0 |
| License | ISC |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 1 |
| Unpacked size | 4.5 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 0 |
| Author | nvh193 |
| Maintainers | nvh193 |
| Keywords | qup-email-templates |

## Links

- npm: https://www.npmjs.com/package/qup-email-templates
- Repository: https://github.com/nvh193/qup-email-templates
- Homepage: https://github.com/nvh193/qup-email-templates#readme
- Issues: https://github.com/nvh193/qup-email-templates/issues
- npm.io page: https://npm.io/package/qup-email-templates

## Dependencies (1)

- [email-templates](https://npm.io/package/email-templates.md) ^6.0.2

## Alternatives

- [@expo/fingerprint](https://npm.io/package/@expo/fingerprint.md) — 6.2M weekly downloads
- [@azure/monitor-opentelemetry-exporter](https://npm.io/package/@azure/monitor-opentelemetry-exporter.md) — 850.0K weekly downloads
- [@azure/monitor-opentelemetry](https://npm.io/package/@azure/monitor-opentelemetry.md) — 624.0K weekly downloads
- [@posthog/ai](https://npm.io/package/@posthog/ai.md) — 423.3K weekly downloads
- [fakefilter](https://npm.io/package/fakefilter.md) — 63.9K weekly downloads

## Recent versions

- 1.0.2 (latest) — 2019-09-20
- 1.0.1 — 2019-09-20
- 1.0.0 — 2019-09-20

## README

# qup-email-templates

## Installation

Using npm:
```shell
$ npm i qup-email-templates
```
In Node.js:
```js
var { renderTemplate } = require('qup-email-templates');

const params = {
  serverName: "NewCCAPI 85",
  hostName: "QUp31",a
  time: "2019-09-20T04:11:40.212Z",
  address: "192.168.2.131",
  version: "4.6.3602",
  tracerId: "94fd6721-ffe1-4d46-8f86-ae39fd16ba62",
  elkLink: "https://elk........",
  error: error,
  subject: "SERVER beta-aws:master port:1337 WARNING_TRUST_DOMAIN",
  component: 'NewCC',
  data: "" // JSON string
};

renderTemplate(params).then(function(template) {
  console.log(template)
  const mailOptions = {
    subject: template.subject,
    html: template.html
  }

  // send mail with defined transport object
  transporter.sendMail(mailOptions, function(error, info) {
    if (error) {
      console.log("BUG send mail has error ", JSON.stringify({ info: error }));
    }
  });
});

```

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