Search code examples
javascriptnode.jsemailgmailopenshift

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. 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...

I don't have any idea to solve this so if someone had a trick !

Thank's


Solution

  • Like @saljuama said you have to enable 2-step verification. And after create an application password.