Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Allow disabling of TLS #54

Merged
merged 1 commit into from Dec 29, 2011
Merged

Allow disabling of TLS #54

merged 1 commit into from Dec 29, 2011

Conversation

taxilian
Copy link
Contributor

My company uses authsmtp.com's smtp service; they allow TLS/SSL, but you have to enable it for your account and if you do it slows things down and each email costs as though you sent 2. For those reasons, we didn't want to use TLS.

This patch makes it so you can pass tls: false in your nodemailer.SMTP config object and it will not call STARTTLS.

There may be a better way to do this; I'm not sure. I also considered making tls: true force TLS to be used with any other value (null, undefined, "frank", etc) meaning use the default, but I dont' know the codebase well enough to do that easily. If you want to make something more elegant I'll switch to using your solution, but it'd be nice to have a solution in the main codebase so I don't have to maintain my own fork =]

andris9 added a commit that referenced this pull request Dec 29, 2011
@andris9 andris9 merged commit 1995f46 into nodemailer:master Dec 29, 2011
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants