Code Monkey home page Code Monkey logo

node-gmail-proxy's Introduction

#node-gmail-proxy ##what does it? It´s a library that includes the following functionality:

  • creating an smtp server and receive mails very easy
  • sending mails to a gmail address

Using this library, it´s very easy to create virtual email adresses and proxy all incoming emails to various gmail accounts.

for example: someone sends you an email at [email protected], node-gmail-proxy receives this mail and forwards it in realtime to your [email protected] address.

##advantages The advantages of this compared to a POP3-server that gmail fetches periodically are:

  • It´s in realtime
  • You don´t have to configure gmail
  • You don´t have to save emails on your server
  • It´s easy
  • It´s customizable
  • It supports an endless count of email adresses & gmail accounts

##example

var ngp = require("node-gmail-proxy");

var table = {
    "[email protected]":"[email protected]"
};

var s = ngp.createServer();
s.on("mail",function(incoming){
    ngp.createMail(incoming.from,table[incoming.to],function(outgoing){
        incoming.on("data",function(d){
            outgoing.write(d);
        });
        incoming.on("end",function(){
            outgoing.end();
        });
    });
});
s.listen(25);

##License I want it to stay free for everyone, so I provide it under the GNU General Public License.

node-gmail-proxy's People

Contributors

vancoding avatar

Watchers

 avatar

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.