Nocturnal Pajama Mutants
    Share your code. npm Orgs help your team discover, share, and reuse code. Create a free org »

    smtp-authpublic

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

    install

    npm i smtp-auth

    Downloadsweekly downloads

    4

    version

    1.0.1

    license

    MIT

    repository

    githubgithub

    last publish

    collaborators

    • avatar