# @cryptoket/mail-manager

> ## Installation ``` npm install @cryptoket-private/mail-manager ```

Latest version **1.0.23** (published 2019-06-19) · MIT license · 0 weekly downloads

## Install

```sh
npm install @cryptoket/mail-manager
pnpm add @cryptoket/mail-manager
yarn add @cryptoket/mail-manager
bun add @cryptoket/mail-manager
```

## 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.23 |
| Published | 2019-06-19 |
| First published | 2019-06-17 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 11 |
| Unpacked size | 148.4 KB |
| Known vulnerabilities | 0 (+24 in 2 direct dependencies) |
| Install scripts | no |
| Maintainers | cryptoket |

## Links

- npm: https://www.npmjs.com/package/@cryptoket/mail-manager
- npm.io page: https://npm.io/package/@cryptoket/mail-manager

## Dependencies (11)

- [ejs](https://npm.io/package/ejs.md) ^2.6.1
- [i18n](https://npm.io/package/i18n.md) ^0.8.3
- [nodemailer](https://npm.io/package/nodemailer.md) ^6.1.1
- [typescript](https://npm.io/package/typescript.md) ^3.2.1
- [@types/i18n](https://npm.io/package/@types/i18n.md) ^0.8.5
- [@types/node](https://npm.io/package/@types/node.md) ^11.9.4
- [email-templates](https://npm.io/package/email-templates.md) ^5.0.4
- [@types/nodemailer](https://npm.io/package/@types/nodemailer.md) ^4.6.7
- [@cryptoket/ts-memoize](https://npm.io/package/@cryptoket/ts-memoize.md) ^1.0.4
- [@types/email-templates](https://npm.io/package/@types/email-templates.md) ^3.5.1
- [promise-all-properties](https://npm.io/package/promise-all-properties.md) ^2.1.3

## Recent versions

- 1.0.23 (latest) — 2019-06-19
- 1.0.22 — 2019-06-19
- 1.0.21 — 2019-06-19
- 1.0.20 — 2019-06-19
- 1.0.19 — 2019-06-19
- 1.0.18 — 2019-06-19
- 1.0.16 — 2019-06-17
- 1.0.15 — 2019-06-17
- 1.0.14 — 2019-06-17
- 1.0.13 — 2019-06-17
- 1.0.12 — 2019-06-17
- 1.0.11 — 2019-06-17
- 1.0.9 — 2019-06-17
- 1.0.8 — 2019-06-17
- 1.0.7 — 2019-06-17
- … 1 more at https://npm.io/package/@cryptoket/mail-manager/versions

## README

# MailManager

## Installation
```
npm install @cryptoket-private/mail-manager
```

## Usage

### Sending Email
```
import { EmailFactory } from '@cryptoket-private/mail-manager
const config = {
  auth: {
    pass: string;
    user: string;
  };
  host: string;
  pool: true;
  port: number;
  secure: boolean;
};
EmailFactory.setTransporterConfig(config);
const extension = 'ejs'; // or pug
const path = '<your template file location>';
const email = EmailFactory.get(path, extension);
email.send({ 
  message: {
    from: string,
    to: string
  }, 
  send: boolean,
  locals: {
    /** put your local variable here */
  }
});
```

---
_Source: https://npm.io/package/@cryptoket/mail-manager · Machine-readable twin of the npm.io package page. Health data is recomputed on every publish._
