pop3-lib-promise

4.0.0 • Public • Published

pop3-lib-promise

get email using pop3 protocol by Promise.

install

$ npm install pop3-lib-promise

example


import { CreateClient } from 'pop3-lib-promise'

async function run() {
    const userProfile = {
        // recent mode, get 30days email
        mail: 'recent:chongyang1994@gmail.com',
        password: 'password'
    }

    const port = 995
    const host = 'pop.gmail.com'
    const client = await CreateClient(port, host, {
        tlserrs: false,
        enabletls: true,
        debug: false
    })

    let res = await client.login(userProfile.mail, userProfile.password)
    let list = await client.list()
    console.log(list)
}
run()

Readme

Keywords

none

Package Sidebar

Install

npm i pop3-lib-promise

Weekly Downloads

2

Version

4.0.0

License

MIT

Last publish

Collaborators

  • onion3