-
-
Notifications
You must be signed in to change notification settings - Fork 1.3k
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
The mail is sent using SMTP and gmail but the callback hangs until timeout #858
Comments
Can't confirm. This is what I see when running the example script:
Please re-open the ticket if you find any additional information why the script fails on your side. |
Thanks @andris9 , i'll try to dig deeper... |
I get the same issue when testing it with Jest, even if the email is correctly sent: const mailConfig = {
host: 'smtp.gmail.com',
port: 465,
secure: true,
auth: {
user: 'user',
pass: 'pass',
},
},
test('production', (done) => {
const transporter = nodemailer.createTransport(mailConfig);
mailOptions.subject = 'Test production e-mail ✔';
transporter.sendMail(mailOptions, (error, info) => {
if (error) {
console.log(error);
throw new Error('failed');
}
expect(info.accepted.length).toBe(1);
expect(info.accepted[0]).toEqual(recipient);
expect(info.response).toEqual('250 Great success');
expect(info.envelope.from).toEqual('foo@example.com');
// console.log(info);
done();
});
}, 10000); Finally I get Logs:
|
Hi please help me i have some problem on nodemailer. connect ETIMEDOUT 108.177.97.109:465 |
Same issue, any solution yet? |
I've got the weird error where transporter.sendmail isn't working despite enabling less secure apps connection on Gmail. It was working before but suddenly stopped working despite not changing anything. I'd love a help right now |
@okabamac Same issue here, anyone have a work around? Was working, suddenly not.
|
Getting the same issue! Did not change even a bit. Suddenly stopped working. Please help! |
@RohitGalgali Hey thanks for the support on this thread lol. I've done extensive research about this issue for mycase and it's on google's side and they don't say why so it could be anything such as your emails are being detected as spam some how. I switched to mailgun and using this package: nodemailer-mailgun-transport as a quick alternative switch. Their service is free up to a certain amount of emails. Honestly I've had this issue before with a laravel server and postfix, it's always the google side of things and I'm going to avoid using gmail as a SMTP. |
Using
nodejs
andnodemailer
on mylocalhost
i'm able to send the mail but callback is never called until timeout. No debug info provided (no stack trace), alsonodemailer
is ignoringsocketTimeout
config setting. Timeout should be in 5000ms but it hangs too long.1. Is this a bug in Nodemailer?
2. Is this related to Gmail / Hotmail / Yahoo?
3. Is your issue related to SSL/TLS errors?
4. Is your issue related to connection timeouts
5. Do you get SyntaxError when using Nodemailer?
6. Nodemailer version you are having problems with (eg. v1.3.7)
4.6.0
...
7. Node.js version you are using (run
node -v
to see it, eg v5.5.0)v8.9.4
...
8. Your operating system (eg. Windows 10, Ubuntu 14.04 etc.)
Windows 10
...
9. Nodemailer configuration settings (if applicable)
...
10. If possible, include a minimal test case that can be used to verify your issue (link to a gist would be great!)
...
Thanks!
The text was updated successfully, but these errors were encountered: