Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/zengming00/node-sendmail-lite
a 100% js sendmail, it is very simple useful, but only support send html formart email, and it does not depend anything, 最简单最容易使用并且不依赖环境的nodejs发送邮件包
https://github.com/zengming00/node-sendmail-lite
Last synced: about 1 month ago
JSON representation
a 100% js sendmail, it is very simple useful, but only support send html formart email, and it does not depend anything, 最简单最容易使用并且不依赖环境的nodejs发送邮件包
- Host: GitHub
- URL: https://github.com/zengming00/node-sendmail-lite
- Owner: zengming00
- License: mit
- Created: 2017-02-08T13:27:12.000Z (almost 8 years ago)
- Default Branch: master
- Last Pushed: 2017-10-09T08:50:29.000Z (over 7 years ago)
- Last Synced: 2024-11-30T16:44:11.437Z (about 2 months ago)
- Language: TypeScript
- Homepage:
- Size: 12.7 KB
- Stars: 7
- Watchers: 3
- Forks: 4
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
- awesome-github-star - node-sendmail-lite
README
# node-sendmail-lite
a 100% js sendmail, it is very simple useful, but only support send html formart email, and it does not depend anything**It can running in any platform**
# install
npm install sendmail-lite --save# demo
```js
var sendMail = require('sendmail-lite').sendMail;var $content = '\
\
\
\
\
\
';// 如果你收不到邮件,那可能是被拦截了,(QQ邮箱->收件箱上面点右键->收件查询)
// 只测试了163和QQ邮箱,测试时请反下面的邮箱地址换成你自己的
// $to = "[email protected]";
var $to = "[email protected]";var $senderName="这是发件人";
var $sender="[email protected]";
var $subject="这是邮件标题";sendMail($senderName, $sender, $to, $subject, $content, function (err) {
if(err) return console.log(err);
console.log('发送成功');
});
```
# typescript support
```typescript
import { sendMail } from 'sendmail-lite';
```# can not receive mail ?
Because Mail is intercepted
# License
MIT