I am trying to send a email in meteor with process.env and smtp gmail

前端 未结 3 1656
说谎
说谎 2020-12-30 11:09

I am using the following to send emails which works on localhost but not my server.

// server
Meteor.startup(function () {
    process.env.MAIL_URL=\"smtp://         


        
3条回答
  •  星月不相逢
    2020-12-30 11:34

    I encountered a similar problem. The method send email work locally but not on the hosting modulus. For my part this was due to a blocking google security (access to my gmail account from Seattle while I live in France has probably seemed fishy to google). I went through several pages to authorize less strict connections to my gmail account. On this page I saw the blockage. So I allowed the less secure applications and allowed access to my account.

    If it helps someone ..

提交回复
热议问题