Socket
Socket
Sign inDemoInstall

@apilayer/mailboxlayer

Package Overview
Dependencies
16
Maintainers
2
Versions
1
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

    @apilayer/mailboxlayer

Mailboxlayer offers email validation & verification JSON API for Developers


Version published
Weekly downloads
2
Maintainers
2
Install size
4.59 MB
Created
Weekly downloads
 

Readme

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

Last updated on 01 Oct 2019

Did you know?

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

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc