Comments (7)
Hi
Nodemailer requires SMTP and can't send e-mails without it. There are other e-mail libs though that use sendmail instead of SMTP (for example https://github.com/aheckmann/node-email) or you can do it yourself with
require("child_process").exec("mail -s \"something\" ... ")
I might add sendmail support to Nodemailer in the future but so far haven't thought about it.
from nodemailer.
Well now I thought about it and adding sendmail support seems highly locigal as the main goal for Nodemailer is to send e-mails and the exact way to do it is irrelevant. So whenever I have the free time I'll add the support for it.
from nodemailer.
Thanks for the input! I'm still rather new to the email stuff and all I know is that I have postfix setup correctly using DKIM and SPF. So the concept of "connecting" using full SMTP seemed like a waste of resources.
I'll look forward to your additions as having valid UTF-8 email (unlike the library you linked too) is very useful for my apps.
from nodemailer.
Hi,
I added sendmail support - just use
nodemailer.sendmail = true;
instead of
nodemailer.SMTP = ...
from nodemailer.
Wow, that was quick! Thanks!
from nodemailer.
@andris9 how to nodemailer with postfix?
from nodemailer.
Wow, this worked for me. I have Postfix/OpenDKIM, so every message I send attaches the DKIM header.
My personal email accounts work great using SMTP/StartTLS. For some reason, Nodemailer wont play nice with it, even though I am connecting to Postfix with the same configuration as Thunderbird.
Switching over to another MTA was the answer for me. By using sendmail, then including the nodemailer DKIM attribute, I am now able to send the correct DKIM signature! Without the sendmail attribute below, it would send the signature twice under the Postfix/OpenDKIM setup, causing a failure.
sendmail: app.nconf.get('ENV') == 'LIVE' ? true : false,
dkim: {
domainName: 'mydomain.io',
keySelector: 'mail',
privateKey: require('fs').readFileSync('data/mail.private')
}
from nodemailer.
Related Issues (20)
- Unhandled error crashes the process within transport.verify() HOT 3
- StreamTransport issues new lines as CRLF despite setting "unix" newline HOT 4
- Core dump on OpenBSD after 7.5 upgrade HOT 1
- Missing credentials for "PLAIN" HOT 4
- I having trouble with import nodemailer from 'nodemailer' HOT 6
- s
- Nodemailer - Cannot send message - smtp connection socket is already destroyed. HOT 4
- Emails sent with iCloud email in the 'from' field not reaching the inbox HOT 3
- Hostname/IP does not match certificate's altnames but certification is correct. HOT 4
- connect ETIMEDOUT ERROR HOT 2
- Not Sending Email (Error: Missing credentials for "PLAIN") HOT 6
- What would be the recipe to encrypt the email with sender's certificate HOT 2
- Too long URLs in the List-Unsubscribe header causes the DKIM signature verification to fail HOT 4
- Invalid login: 535-5.7.8 Username and Password not accepted HOT 4
- Nodemailer not working in my ubuntu vps server, but works on localhost (windows) both development and production HOT 1
- Nodemailer is not working in production HOT 2
- Github-Actions closing valid issues HOT 2
- SES Email transport throttling callback HOT 2
- Azure Functions v4 - Authentication Unsuccessful HOT 2
- nodemailer authorisation error due to MFA HOT 2
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from nodemailer.