# ali-email

> nodejs sdk for aliyun DirectMail API

Latest version **1.1.1** (published 2016-12-24) · ISC license · 0 weekly downloads

## Install

```sh
npm install ali-email
pnpm add ali-email
yarn add ali-email
bun add ali-email
```

## 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.1 |
| Published | 2016-12-24 |
| First published | 2016-12-24 |
| Weekly downloads | 0 |
| License | ISC |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 0 |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 4 |
| Author | winston |
| Maintainers | mttylzq |
| Keywords | aliyun, email, api |

## Links

- npm: https://www.npmjs.com/package/ali-email
- Repository: https://github.com/Mttylzq/ali-email
- Homepage: http://github.com/Mttylzq/ali-email
- Issues: https://github.com/kevinbeaty/any-promise/issues
- npm.io page: https://npm.io/package/ali-email

## 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.1 (latest) — 2016-12-24
- 1.1.0 — 2016-12-24
- 1.0.2 — 2016-12-24
- 1.0.1 — 2016-12-24
- 1.0.0 — 2016-12-24

## README

Nodejs SDK for [Aliyun DirectMail service](https://help.aliyun.com/document_detail/29439.html?spm=5176.doc29438.2.1.bOoMjN)

## Install

```
npm install ali-email
```

## Usage
###SingleSendMail
```javascript
var aliEmail = require("ali-email");
var accessKeyID     = process.env.ALI_SMS_ACCESSKEYID ;
var accessKeySecret = process.env.ALI_SMS_ACCESSKEYSECRET ;

var configSingle = {
    action            :'SingleSendMail',
    accessKeyID       : accessKeyID,
    accessKeySecret   : accessKeySecret,
    accountName       :'service@abc.com',
    replyToAddress    :true,
    addressType       :0,
    toAddress         :'abc@abc.com',
    fromAlias         :'sendEmailFromAlias',
    subject           :'subject',
    textBody          :'test'
};
aliEmail(configSingle, function(err, body) {
    console.log(err);
    console.log(body);
});
```
###BatchSendMail
```javascript
var aliEmail = require("ali-email");
var accessKeyID     = process.env.ALI_SMS_ACCESSKEYID ;
var accessKeySecret = process.env.ALI_SMS_ACCESSKEYSECRET ;

var configSingle = {
    action            :'BatchSendMail',
    accessKeyID       : accessKeyID,
    accessKeySecret   : accessKeySecret,
    accountName       :'service@abc.com',
    templateName      :'test',
    receiversName      :'test',
};
aliEmail(configSingle, function(err, body){
    console.log(err);
    console.log(body);
});

```

## Config 
[Aliyun DirectMail service](https://help.aliyun.com/document_detail/29439.html?spm=5176.doc29438.2.1.bOoMjN)

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