4.0.0 • Published 7 years ago

pop3-lib-promise v4.0.0

Weekly downloads
-
License
MIT
Repository
-
Last release
7 years ago

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()
4.0.0

7 years ago

2.0.0

7 years ago

1.0.0

7 years ago