Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

email-notification

Package Overview
Dependencies
Maintainers
1
Versions
1
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

email-notification

This project uses mailosaur api service to search for emails by link and/or subject from email server.

  • 1.0.0
  • latest
  • npm
  • Socket score

Version published
Weekly downloads
17
decreased by-19.05%
Maintainers
1
Weekly downloads
 
Created
Source

email-notification:

This is a npm module to search for emails sent to mailosaur mail server - by Subject and Links (in email html).

Install:

npm install email-notification

Environment Variables:

Set following environment variables on your machine/CI variables/.env:

MAILOSAUR_API_KEY = api key for your mailosaur account
MAILOSAUR_SERVER_ID = server id for your mailosaur account

Usage:

Sample usage example from a UI solution page object and its calling in test:

eMail by Subject in page object:

const email = require('email-notification');
const emailSubject = email.emailBySubject();

This method would return the subject for matching email

async emailConfirmation(completeEmailAddress, searchByText) {
    await emailSubject.getEmailSubject(completeEmailAddress, searchByText);             
}

calling from test (search by subject-text)

await page.emailConfirmation('leancat.1234abcd@mailosaur.io', 'Reset your password'); 
const email = require('email-notification');
const emailLink = email.emailByLink();

This method would return the link from matching email

async emailConfirmation(completeEmailAddress, searchByLinkHref) {
    await emailLink.getEmailData(completeEmailAddress, searchByLinkHref);          
}

calling from test ( search by link href in email)

await page.emailConfirmation('leancat.1234abcd@mailosaur.io', 'mailto:marketing@npmjs.com'); 

Keywords

FAQs

Package last updated on 25 Jun 2019

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc