#NodeMailer
30 messages · Page 1 of 1 (latest)
this is the Hostinger settings on the website
When i change the port to 465 and the secure to true
the error become like this
// Generate test SMTP service account from ethereal.email
// Only needed if you don't have a real mail account for testing
let testAccount = await nodemailer.createTestAccount();
Looks like you're using a test method with a live email server.
Have you tried using createTransport instead of createTestAccount?
I think its not the issue
i am now using this code and its the same
this code from the nodemailer docs
This error is with me since 8 hours 😣
That's weird. It could be something with Hostinger, where you need to whitelist an IP. Like how cPanel does with MySQL DBs.
Try the debugger though and see what it says. Maybe it will point you in the right direction.
Nodemailer is a module for Node.js to send emails
Does Hostinger, or your email, have SMTP enabled?
Also, if you can connect and send an email to https://mailtrap.io, that will pinpoint that Hostinger is the problem area.
Ah,,,
it solved ..
its because syria is banned from the USA and i am living there
nevermind
Thanks for your time ❤️
Glad you got it figured out at least.
@soft dragon Please do not delete your posts on e you have an answer
Why is that ?
I thought that i want to clear the code-help from answered questions
So other people can see? It doesn't take up space.
If you want you could put a little ☑️ or something to say you're good with emoji
Other people may have the same problem and see what you did to fix it. This is valuable
ooh, but this time no one will take any benefit because it was problem only with my region[syria] which is probably no one in ,
but next time surely i will not delete,
Thanks for your clearification
You never know!
RogerThat