smtp-auth
TypeScript icon, indicating that this package has built-in type declarations

1.0.1 • Public • Published

node-smtp-auth

Auth user from smtp server

more info: 使用SMTP服务进行用户登录认证

Install

$ npm install smtp-auth --save

How to use

const SMTPAuth = require("smtp-auth");
const client = new SMTPAuth({
  host: "smtp.163.com",
  port: 25,
});
 
client.auth("test@extmail.org", "test").then(() => {
  console.log("login success")
}).catch((err) => {
  console.log("login fail: ", err)
});

Package Sidebar

Install

npm i smtp-auth

Weekly Downloads

1

Version

1.0.1

License

MIT

Unpacked Size

11.8 kB

Total Files

12

Last publish

Collaborators

  • yourtion