GithubHelp home page GithubHelp logo

catchmail-node's Introduction

catchmail-node

A drop-in sendmail command line replacement built in Javascript with Node for testing.

It will forward all your mails to a testing SMTP mail catcher (we recommend MailDev).

Use it to test applications that call sendmail, like PHP mail() function:

  1. install a test local SMTP mailcatcher like MailDev or MailCatcher
  2. replace sendmail bin with catchmail (in PHP, add directive: sendmail_path = /usr/bin/env ./catchmail)
  3. run mail server ($> maildev)
  4. test your app
  5. now all the mails you send appear nicely on http://localhost:1080/

Note that this code is a partial, non-optimized program to ease testing. It is not fit for production, use full blown sendmail or its successors.

Inspired 100% by catchmail in MailCatcher.

Install & Run

$ npm install -g catchmail
$ catchmail 

Build, test, contribute

You need to have git and node (v 0.12 or later) installed

git clone https://github.com/xavierpriour/catchmail-node.git
cd catchmail-node
npm install
grunt test

Please add tests with any contribution. Thanks and enjoy!

catchmail-node's People

Contributors

xavierpriour avatar

Stargazers

 avatar  avatar  avatar  avatar

Watchers

 avatar  avatar

catchmail-node's Issues

Can't send emails to Docker MailDev

When sending to MailDev running in Docker, I get:
Error: Greeting never received
It works fine sending to MailHog.

I've used nc to talk to MailDev, and MailDev seems to be working fine, MailDev immediately replies:
220 8f0608ac52c8 ESMTP
However, having attempted to debug smtp-connection, it seems no data is received by catchmail when talking to MailDev.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.