# blackboard-send-mail

> Send e-mails from Node.js – easy as Peeled bananas! 🍌✉️

Latest version **1.0.7** (published 2020-11-19) · ISC license · 0 weekly downloads

## Install

```sh
npm install blackboard-send-mail
pnpm add blackboard-send-mail
yarn add blackboard-send-mail
bun add blackboard-send-mail
```

## 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.7 |
| Published | 2020-11-19 |
| First published | 2020-09-01 |
| Weekly downloads | 0 |
| License | ISC |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 1 |
| Unpacked size | 3.3 KB |
| Known vulnerabilities | 0 (+12 in 1 direct dependencies) |
| Install scripts | no |
| GitHub stars | 0 |
| Maintainers | n.devs260340 |
| Keywords | node, express, api, mail, blackboard-th |

## Links

- npm: https://www.npmjs.com/package/blackboard-send-mail
- Repository: https://github.com/Iceberg-incorporation/blackboard-send-mail
- Homepage: https://github.com/Iceberg-incorporation/blackboard-send-mail#readme
- Issues: https://github.com/Iceberg-incorporation/blackboard-send-mail/issues
- npm.io page: https://npm.io/package/blackboard-send-mail

## Dependencies (1)

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

## 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.7 (latest) — 2020-11-19
- 1.0.6 — 2020-09-01
- 1.0.5 — 2020-09-01
- 1.0.4 — 2020-09-01
- 1.0.3 — 2020-09-01
- 1.0.2 — 2020-09-01
- 1.0.1 — 2020-09-01

## README

# blackboard-send-mail

Send e-mails from Node.js – easy as Peeled bananas! 🍌✉️

[![npm version](https://badge.fury.io/js/blackboard-send-mail.svg)](https://badge.fury.io/js/blackboard-send-mail)

[![NPM](https://nodei.co/npm/blackboard-send-mail.png)](https://nodei.co/npm/blackboard-send-mail/)

## Installation

```sh
$ npm install blackboard-send-mail
```

or

```sh
$ yarn add blackboard-send-mail
```

## Importing

```javascript
// Using Node.js `require()`
const bsm = require('blackboard-send-mail');
```

## Overview

### Connecting to Mail

First, we need to define a connection mail service. `bsm.connect`

```js
bsm.connect({
    host: "HOST_MAIL_DOMAIN",
    auth: {
        user:"EMAIL_DOMAIN",
        pass: "PASSWORD"
    }
})
```

### Send Email

```js
bsm.sendMail({
    from: '"Fred Foo 👻" <foo@example.com>', // sender address
    to: "bar@example.com, baz@example.com", // list of receivers
    subject: "Hello ✔", // Subject line
    text: "Hello world?", // plain text body
    html: "<b>Hello world?</b>", // html body
  }).then(info => {
       console.log("Message sent: %s", info.messageId);
  // Message sent: <b658f8ca-6296-ccf4-8306-87d57a0b4321@example.com>
  });
```

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