pop3-lib-promise
v4.0.0
Published
pop3-lib based by promise[D[D[D[D[D[D[D[D[D[D[D
Downloads
5
Readme
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:[email protected]',
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()