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

maildev

Package Overview
Dependencies
Maintainers
3
Versions
46
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

maildev

SMTP Server and Web Interface for reading and testing emails during development

  • 2.0.5
  • Source
  • npm
  • Socket score

Version published
Weekly downloads
70K
decreased by-6.18%
Maintainers
3
Weekly downloads
 
Created

What is maildev?

MailDev is a simple way to test email sending functionality during development. It acts as a SMTP server that captures emails and displays them in a web interface, allowing developers to view and test emails without sending them to real email addresses.

What are maildev's main functionalities?

SMTP Server

MailDev can be used as a SMTP server to capture emails sent from your application. The code sample demonstrates how to start MailDev on port 1025.

const maildev = new MailDev();
maildev.listen(1025);

Web Interface

MailDev provides a web interface to view captured emails. This code snippet shows how to start the web interface on the default port 1080.

maildev.listen(1025, function() {
  console.log('MailDev web interface running at http://localhost:1080');
});

Email Retrieval via API

MailDev offers an API to retrieve emails programmatically. The example fetches all emails from the MailDev server using a simple HTTP GET request.

fetch('http://localhost:1080/email')
  .then(response => response.json())
  .then(emails => console.log(emails));

Other packages similar to maildev

Keywords

FAQs

Package last updated on 18 May 2022

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