Created
September 9, 2011 08:37
-
-
Save serby/1205774 to your computer and use it in GitHub Desktop.
Showing the nodemailer global send engine bug
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
function first() { | |
var nodemailer = require('nodemailer'); | |
console.log(nodemailer.sendmail); | |
console.log(nodemailer.SMTP); | |
} | |
function second() { | |
var nodemailer = require('nodemailer'); | |
nodemailer.sendmail = true; | |
console.log(nodemailer.sendmail); | |
console.log(nodemailer.SMTP); | |
} | |
function third() { | |
var nodemailer = require('nodemailer'); | |
nodemailer.SMTP = { host: 'localhost' }; | |
console.log(nodemailer.sendmail); | |
console.log(nodemailer.SMTP); | |
} | |
first(); | |
second(); | |
third(); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment