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

@apilayer/mailboxlayer

Package Overview
Dependencies
Maintainers
2
Versions
1
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@apilayer/mailboxlayer

Mailboxlayer offers email validation & verification JSON API for Developers

  • 0.1.6
  • latest
  • npm
  • Socket score

Version published
Weekly downloads
1
decreased by-50%
Maintainers
2
Weekly downloads
 
Created
Source

mailboxlayer-go

Mailboxlayer offers email validation & verification JSON API for Developers

Installation

Using npm

npm require --save @apilayer/mailboxlayer

or yarn

yarn add @apilayer/mailboxlayer

Getting Started

Head over to Mailboxlayer and create an account. Copy access key from dashboard.

import Mailboxlayer from '@apilayer/mailboxlayer'

const useHTTPs = true
const layer = new Mailboxlayer("<your-access-key>", useHTTPs)

Check

Check validates a supplied email address.

Signature:

check(email: string, config: Config): Promise<Response>

Example:

const response = layer.check("support@apilayer.com", {
	smtp: true, // perform SMTP check on the email
	catch_all: true, // check if the server catches all emails
})

console.log('response:', response)

Response:

{
  "email": "support@apilayer.com",
  "did_you_mean": "",
  "user": "support",
  "domain": "apilayer.net",
  "format_valid": true,
  "mx_found": true,
  "smtp_check": true,
  "catch_all": false,
  "role": true,
  "disposable": false,
  "free": false,
  "score": 0.8
}

License

MIT

FAQs

Package last updated on 01 Oct 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