guileen / node-sendmail

send mail without setting up a SMTP server

Home Page:http://guileen.github.com/node-sendmail

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Example on your site incorrect?

guidocalvano opened this issue · comments

Your example on your site is incorrect:

https://npmjs.org/package/sendmail

sendmail = require('sendmail').sendmail;

it should be this right? That is what it says on the github page.

sendmail = require( 'sendmail')() ;

Agreed. I noticed this as well and had to add: var sendmail = require( 'sendmail')();

commented

Tbh, I still can't get the example to work

I also cannot get the example to work.

It should work now, make sure change to your own mail address, and check the junk mail in your mailbox.