Comments (6)
Hi, this issue is not know. Could you set debug:true
in SMPT settings and copy the console output here (replace real server names and e-mail addresses from the log before pasting, since these are not needed).
from nodemailer.
All it gives me is "error occurred,Timeout waiting for response from server"
The only difference between the config in the other package is it allows me to include a domain setting to identify itself to the server. Is it possible to add that to the SMTP config?
If I set SSL to false I get some more info.
CONNECTION (1): 220 SG108 - ServerGrove - www.servergrove.com ESMTP
Connection established! (1)
SEND (1):
└──"EHLO server.xxxxxxxxxxxk.com\r\n"
RECEIVE (1):
└──"250-sg107.xxxxxxxxxxx.com\r\n" ""
RECEIVE (1):
└──"250-AUTH LOGIN\r\n250-AUTH=LOGIN\r\n250-PIPELINING\r\n250 8BITMIME\r\n" "250-sg107.xxxxxxxxxxx.com\r\n"
Routing Data (1)
Mail.emit { '0': 'connection_stable' }
SEND (1):
└──"AUTH PLAIN xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx\r\n"
RECEIVE (1):
└──"504 Unsupported authorization type.\r\n" "250-sg107.xxxxxxxxxxxxxx.com\r\n"
Routing Data (1)
Error occured
504 Unsupported authorization type.
from nodemailer.
You can set the identifying domain with hostname
SMTP = {
host:"smtp.example.com",
hostname: "mydomain",
....
}
The default value is the machine name (os.hostname()
) or if not set then [127.0.0.1]
from nodemailer.
I've been playing around with various setting but can't get it to work. Here's the settings that work for
https://github.com/Marak/node_mailer
email.send({
host : "mail.mydomain.com", // smtp server hostname
port : "2525", // smtp server port
ssl: true, // for SSL support - REQUIRES NODE v0.3.x OR HIGHER
domain : "mydomain.com", // domain used by client to identify itself to server
to : "[email protected]",
from : "'Godfrey' <[email protected]>",
subject : "Godfrey added "+count+" contacts to consumers DB",
template : "./templates/consumersadded.txt",
data : {"cheesyquote" : message,
"count" : count },
authentication : "login", // auth login is supported; anything else is no auth
username : "dnJfYxxxxxxxxxxxxxxxxxEuY29t", // Base64 encoded username
password : "N2xxxxxxx==" // Base64 encoded password
},
function(err, result){
if(err){ console.log(err); }
});
}
from nodemailer.
From the log I can see that that the server expects AUTH LOGIN
as the login method but Nodemailer uses AUTH PLAIN
which is a bit similar but not the same. Some servers don't advertise support for AUTH PLAIN
but actually they do support it, so Nodemailer tries to use it anyway.
Maraks node_mailer on the contrary to Nodemailer uses AUTH LOGIN
instead of AUTH PLAIN
- that is why it works with this particular server. In a future release I'll add better AUTH handling for Nodemailer but this is probably not coming before June.
from nodemailer.
AUTH LOGIN turned out to be quite easy to implement, so didn't bother to wait until June :)
from nodemailer.
Related Issues (20)
- 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
- UNHANDLED PROMISE REJECTION node js HOT 2
- help UNHANDLED PROMISE REJECTION The promise rejected with the reason "SMTP ERROR => connect ETIMEDOUT 52.101.151.0.25".] { HOT 1
- Allow usage of `https://www.googleapis.com/auth/gmail.modify` Gmail OAuth scope HOT 1
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.