Join 1M+ other developers and:
- Get help and share knowledge in Q&A
- Subscribe to topics of interest
- Get courses & tools that help you grow as a developer or small business owner
How to send and receive emails in NodeJs on Ubuntu with my domain?
Firstly, my apologize, but my English is not the best. (I’m learning this language.:) )
I am a beginner programmer student so probably I will write some stupid things here, sorry for this.:) I would like to create a website with Node.JS on Ubuntu server that can send emails too. (For example when somebody is registering, the server send an email to this user.)
Firstly, I used Node.JS and the Nodemailer module with Google SMTP. It worked fine. However, I wanted to create my own email server. I installed Postfix, dovecot based on some tutorials/documentations. So, it worked fine. I could send emails with my own domain (like this email@example.com) manually from the terminal. But I couldn’t send emails via Nodemailer.
Maybe can somebody help me to find a solution how to configure Postfix etc to use it with Nodemailer? I know, it can be really complex but I hope somebody can help me:)
These answers are provided by our Community. If you find them useful, show some love by clicking the heart. If you run into issues leave a comment, or add your own answer to help others.×