yopmail-helper
Version:
yopmail helper. It will help you receive the mail content.
39 lines (32 loc) • 871 B
Markdown
You can install the library using [NPM](https://www.npmjs.com/) or [Yarm](https://yarnpkg.com/)
```
npm i yopmail-helper
```
```
yarn add yopmail-helper
```
``` js
//Declare module
import { inbox, linkOfFirstMail, mailDetails, mailDetailsHtml } from 'yopmail-helper';
```
``` js
const mails = await inbox('admin01');
```
``` js
const mails = await inbox('admin01');
const mailDetailsInfo = await mailDetails(mails[0].mailId,'admin01');
```
``` js
const mails = await inbox('admin01');
const mailDetailsHtmlInfo = await mailDetailsHtml(mails[0].mailId,'admin01');
```
``` js
const link = await linkOfFirstMail('admin01');
```