简体   繁体   English

使用Openshift托管中的Node.js应用程序发送电子邮件

[英]Send email with Node.js application in Openshift hosting

I have my Node.js application hosting in Openshift to test it and I want to send email. 我在Openshift中托管了Node.js应用程序以对其进行测试,我想发送电子邮件。 I have a contact form and I would like to receive the message by mail. 我有联系表格,我想通过邮件收到消息。 In local I setup nodemailer with my Gmail account but when I try it in Openshift it does't work because of the security conditions of Google... 在本地,我用我的Gmail帐户设置了nodemailer,但是由于Google的安全性条件,当我在Openshift中尝试使用它时,它无法正常工作...

I don't have any idea to solve this so if someone had a trick ! 我不知道要解决这个问题,所以如果有人欺骗了我!

Thank's 谢谢

Like @saljuama said you have to enable 2-step verification. 就像@saljuama所说,您必须启用两步验证。 And after create an application password. 并在创建应用程序密码后。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM