# nodemailer-promisify

> A promisified class for nodemailer lib:

Latest version **1.0.2** (published 2018-05-26) · ISC license · 0 weekly downloads

## Install

```sh
npm install nodemailer-promisify
pnpm add nodemailer-promisify
yarn add nodemailer-promisify
bun add nodemailer-promisify
```

## 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 | 2018-05-26 |
| First published | 2018-05-26 |
| Weekly downloads | 0 |
| License | ISC |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 1 |
| Unpacked size | 6.1 KB |
| Known vulnerabilities | 0 (+11 in 1 direct dependencies) |
| Install scripts | no |
| GitHub stars | 0 |
| Author | AoiYamada |
| Maintainers | aoi_yamada |
| Keywords | nodemailer, promise |

## Links

- npm: https://www.npmjs.com/package/nodemailer-promisify
- Repository: https://github.com/AoiYamada/nodemailer-promisify
- Homepage: https://github.com/AoiYamada/nodemailer-promisify#readme
- Issues: https://github.com/AoiYamada/nodemailer-promisify/issues
- npm.io page: https://npm.io/package/nodemailer-promisify

## Dependencies (1)

- [nodemailer](https://npm.io/package/nodemailer.md) ^4.6.4

## 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) — 2018-05-26
- 1.0.1 — 2018-05-26
- 1.0.0 — 2018-05-26

## README

# nodemailer-promisify
A promisified class for nodemailer lib:

https://nodemailer.com

## Installation
```bash
npm i nodemailer-promisify --save
```

## Examples
```javascript
// Create Instance
const { Nodemailer } = require('nodemailer-promisify');

(async() => {
    // Test account
    account = await Nodemailer.CreateTestAccount();

    mailer = await new Nodemailer({
        host: 'smtp.ethereal.email', // 'smtp.gmail.com' for gmail
        port: 587,
        secure: false,
        auth: {
            user: account.user, // your acc
            pass: account.pass, // password
        }
    });

    // Send mail
    const mailOptions = {
        from: '"Fred Foo" <foo@example.com>',
        to: 'bar@example.com, baz@example.com',
        bcc: 'bar@example.com, baz@example.com',
        subject: 'Hello',
        text: 'Hello world?',
        html: '<b>Hello world?</b>'
    };

    const info = await mailer.Send(mailOptions);

    // Email preview, for test acc mode only
    console.log(Nodemailer.GetTestMessageUrl(info));
})();
```

## Test
```bash
npm test
```

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