简体   繁体   中英

MEANJS stack and email configuration

I am trying to configure email service in MEAN stack.

I have the following configuration :

mailer: {
    from: process.env.MAILER_FROM || 'xyz@gmail.com',
    options: {
        service: process.env.MAILER_SERVICE_PROVIDER || 'Gmail',
        auth: {
            user: process.env.MAILER_EMAIL_ID || 'xyz@gmail.com',
            pass: process.env.MAILER_PASSWORD || 'aaaaaa'
        }
    }
}

it gives me error "Failure sending email" - every time i try to send email.

what am i missing ?

您可能需要完成一些有关 Gmail 帐户配置的步骤,即在您的 Google 安全设置中允许安全较低的应用程序

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

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