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

mail7

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

mail7

Mail7 Disposable Email NodeJs SDK contains email and routing rules APIs

  • 1.0.0
  • latest
  • Source
  • npm
  • Socket score

Version published
Maintainers
1
Created
Source

About Mail7

​Mail7.io is a service that allows receiving emails at a temporary address that self-destructed after 24 hours. It is the most advanced throwaway email service that helps you avoid spam and stay safe in such cases.

Installation

npm i --save mail7

Configuration

Replace the placeholders in the config object with your mail7 credentials apikey and apisceret. These can be obtained from here

var  config = {
     apiKey:  '<mail7 apikey>',
     apiSecret:  '<mail7 apisecret>'
}

Don't have Mail7 Account ? Create you own account here and get your apikey and apisecret

Require the mail7 package and pass the config object

var mail7 = require('mail7')(config);

Usage

mail7.getInboxByEmail("<example-email@mail7.io>").then((response) => {
   console.log(response);
}).catch((error) => {
   console.log(error);
});

The detailed document for apis parameters, body and output format, you can go through the mail7 documents

Inbox APIs:

Params
  • @param {string} to - full email address or username for example testme or testme@mail7.io
  • @param {string} mesgid - the id of particular email object
  • @param {string} domain - the domain name email is created by

As mail7 support custom domain, so you can use any email like example@testme.com. But you no need to pass this domain explicitly in function param as domain will be fetched from email. But make sure that your mail7 plan included the custom domain email addresses

Routing Rules APIs:

Params
  • @param {object} data - json object for roles need to be create
  • @param {string} ruleName - rule to be delete

If only username testme is passed then it will be treated as default mail7.io domain email like testme@mail7.io

It is suggested that pass full email address for any other domain like testme@domain1.com

FAQs

Package last updated on 30 Jun 2020

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