# sendmail-nodemailer

> Mail sending based on node nodemail

Latest version **1.1.0** (published 2018-03-02) · ISC license · 0 weekly downloads

## Install

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

## 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 | 2018-03-02 |
| First published | 2018-02-28 |
| Weekly downloads | 0 |
| License | ISC |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 1 |
| Unpacked size | 17.2 KB |
| Known vulnerabilities | 0 (+11 in 1 direct dependencies) |
| Install scripts | no |
| Author | rensdn |
| Maintainers | rensdn |
| Keywords | node, nodemailer |

## Links

- npm: https://www.npmjs.com/package/sendmail-nodemailer
- npm.io page: https://npm.io/package/sendmail-nodemailer

## Dependencies (1)

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

## 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.1.0 (latest) — 2018-03-02
- 1.0.9 — 2018-03-02
- 1.0.8 — 2018-03-02
- 1.0.7 — 2018-03-02
- 1.0.6 — 2018-03-02
- 1.0.5 — 2018-03-02
- 1.0.4 — 2018-02-28
- 1.0.3 — 2018-02-28
- 1.0.2 — 2018-02-28
- 1.0.0 — 2018-02-28

## README

# sendmail-nodemailer

[![Nodemailer]](https://nodemailer.com/about/)
[Nodemailer]: https://raw.githubusercontent.com/nodemailer/nodemailer/master/assets/nm_logo_200x136.png "Nodemailer"

## Installation



### NPM

```js

npm install sendmail-nodemailer --save

```

## Examples

```js

var sendmailer = require("sendmail-nodemailer");
var attachment=[
     {
        filename: 'xxx',		//附件名1
        path: 'xxx/xxx/xxx.xx',		// 附件路径1
        cid : '00000001'		//cid可被邮件使用
     },
     {
        filename: 'xxx',		//附件名2
        path: 'xxxxx/xxxx/xxx.xxx',		//附件路径2
        cid : 'xxxxxxxx'		//cid可被邮件使用
     }
];
var options={
				service:"xxxx"		//服务器名称
				port:xxx		//端口
				secure:false		// true for 465, false for other ports
				sendmailbox:"xxx@xxx.com"		//邮件发送者
				sendmailboxpass:"xxxxxxx"		//邮箱密码
				getemailbox:"xxx@xxx.com"		//邮件接收者  可以同时发送多个,以逗号隔开
				subject:"xxxxxxx"		//邮件标题
				mailtext:"hello world"		//文本   邮件内容
				//mailhtml:"<b>hello world</b><p><img src='cid:00000001'/></p>"		//html   邮件内容   
				attachments : JSON.stringify(attachment)
			};

var result = sendmailer(options);

```

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