@mohuk/mail-helper
TypeScript icon, indicating that this package has built-in type declarations

1.0.0 • Public • Published

Mail Helper

Raison d`etre

This package is made to fetch the last email arrived in the Inbox of the configured email address. It exists because we needed this to test e2e flows where email is received by the user and he takes action accordingly.

Example

import { MailHelper } from '@mohuk/mail-helper';

const helper = new MailHelper({
  user: '',
  password: '',
  host: '',
  port: '',
  tls: true
});

helper.connect()
  .then(() => helper.fetchLastEmail())
  .then((email: string) => {
    console.log(email);
  })
  .catch((err) => {
    console.log(err)
  });

Readme

Keywords

none

Package Sidebar

Install

npm i @mohuk/mail-helper

Weekly Downloads

3

Version

1.0.0

License

MIT

Last publish

Collaborators

  • mohuk