1.1.0 • Published 6 years ago

sendmail-nodemailer v1.1.0

Weekly downloads
2
License
ISC
Repository
-
Last release
6 years ago

sendmail-nodemailer

Nodemailer

Installation

NPM

npm install sendmail-nodemailer --save

Examples

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);
1.1.0

6 years ago

1.0.9

6 years ago

1.0.8

6 years ago

1.0.7

6 years ago

1.0.6

6 years ago

1.0.5

6 years ago

1.0.4

6 years ago

1.0.3

6 years ago

1.0.2

6 years ago

1.0.0

6 years ago