Important: This documentation covers Yarn 1 (Classic).
For Yarn 2+ docs and migration guide, see yarnpkg.com.

Package detail

yopmail-helper

qa-io-vn2kMIT1.0.12TypeScript support: included

yopmail helper. It will help you receive the mail content.

javascript, tools, yopmail, temporal mail, mail semail

readme

Yopmail helper

📦 Install

You can install the library using NPM or Yarm

npm i yopmail-helper
yarn add yopmail-helper

🔧 How to use

//Declare module
import { inbox, linkOfFirstMail, mailDetails, mailDetailsHtml } from 'yopmail-helper';

✉️ get inbox of a mail address

    const mails = await inbox('admin01');

🗃️ Read details of an email

    const mails = await inbox('admin01');
    const mailDetailsInfo = await mailDetails(mails[0].mailId,'admin01');

🗃️ Read details of an email in HTML

    const mails = await inbox('admin01');
    const mailDetailsHtmlInfo = await mailDetailsHtml(mails[0].mailId,'admin01');
    const link = await linkOfFirstMail('admin01');