0.1.1 • Published 10 years ago

smtp2sendgrid v0.1.1

Weekly downloads
2
License
ISC
Repository
-
Last release
10 years ago

smtp2sendgrid

A command line server to create and listen as a smtp server. The every mail send to the server will transfer to sendgrid account to delivery to receiver.

Installation

npm install smtp2sendgrid -g

Usage

You can use -h to see the help page:

$ smtp2sendgrid -h

  Usage: smtp2sendgrid [options]

  Options:

    -h, --help                           output usage information
    -V, --version                        output the version number
    -u, --username <sendgrid user name>  Specific the sendgrid username for login
    -p, --password <sendgrid password>   Specific the sendgrid password for login
    -t, --tmp <tmp file location>        We will save the content to file in the tmp path

Sample command:

sudo smtp2sendgrid -u [sendgrid-username] -p [sendgrid-password] -t [tmp-file-folder]

Test from node.js

var nu = require('nodeutil');

var mailer = require('nodeutil').mailutil;
var ip = 'the-ip-address-you-use-for-server';

mailer.init(
      {"smtpOptions":{"host":ip}, "sender": "NO-REPLY <no-reply@example.com>"}
    );

mailer.sendNodeMailAsync('your-mail@example.com',
  'test mail send...',
  'send mail OK!',
  true,
  function(){
    console.log('Send mail done...');
  }
);

Others

Thank for use, report bug : simonsu.mail@gmail.com

0.1.1

10 years ago

0.1.0

10 years ago

0.0.9

10 years ago

0.0.8

10 years ago

0.0.7

10 years ago

0.0.6

10 years ago

0.0.5

10 years ago

0.0.4

10 years ago

0.0.3

10 years ago

0.0.2

10 years ago

0.0.1

11 years ago