mail for nodemailer didn't work on azure server

淺唱寂寞╮ 提交于 2019-12-02 10:00:34

Just in case someone else meet the same problem.

I had the same problem about running Nodemailer in Azure Website. Finally I found the problem was that I forgot put Nodemailer as a dependency in package.json. Then azure did not know it had to install Nodemailer for the hosted server.

Add "nodemailer" : "*" at the end of dependency list in package.json. Don't forget to add a "," after the last line before you add "nodemailer".

Hope it helps.

Please do changes in iisnode.yml file to call newer nodejs version as follows- nodeProcessCommandLine: "D:\Program Files (x86)\nodejs\8.5.0\node.exe"

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!