Emails Stopped Sending After The Project Was Deployed On A Real Hosting
I deployed the project on the real host, and email stopped sending. It works on the local host. Here is the nodemailer settings:
var smtpTransport = nodeMailer.createTransport({
service: "gmail",
host: "smtp.gmail.com",
auth: {
user: "here is my gmail",
pass: "here is password"
}
});
Here is the data that was sent to me from the hosting:
List of POP3 IMAP and SMTP mail servers
Webmail: https://mail.ye4wrc7dna.nlnode.webrahost.eu
POP3/IMAP Server: mail.webrahost.com Port: 993 TLS/SSL
Outgoing Server (SMTP): mail.webrahost.com Port: 465 Connection security: SSL/TSL (this server requires an encrypted connection)
The request comes to the server (checked through console.log), but the email is not sent. How to set up correctly? Thanks to everyone
Answer
The problem was solved in the following way. Technical support created an account at http://mail.webrahost.com/ for me, and then I entered this data into the settings of nodemailer.
var smtpTransport = nodeMailer.createTransport({
host: "mail.webrahost.eu",
port: 465,
secure: true,
auth: {
user: "my webrahost email",
pass: "my password"
}
});
Now email is working
Related Questions
- → Maximum call stack exceeded when instantiating class inside of a module
- → Browserify api: how to pass advanced option to script
- → Node.js Passing object from server.js to external modules?
- → gulp-rename makes copies, but does not replace
- → requiring RX.js in node.js
- → Remove an ObjectId from an array of objectId
- → Can not connect to Redis
- → React: How to publish page on server using React-starter-kit
- → Express - better pattern for passing data between middleware functions
- → Can't get plotly + node.js to stream data coming through POST requests
- → IsGenerator implementation
- → Async/Await not waiting
- → (Socket.io on nodejs) Updating div with mysql data stops without showing error