535-5.7.8 Username and Password not accepted

后端 未结 8 1808
逝去的感伤
逝去的感伤 2020-12-24 01:17

I have a contact form and after submitting I am getting a Net::SMTPAuthenticationError 535-5.7.8 Username and Password not accepted

It\'s pointing to th

8条回答
  •  失恋的感觉
    2020-12-24 02:05

    Time flies, the way I do without enabling less secured app is making a password for specific app

    Step one: enable 2FA

    • https://myaccount.google.com/signinoptions/two-step-verification/enroll-welcome

    Step two: create an app-specific password

    • https://myaccount.google.com/apppasswords

    After this, put the sixteen digits password to the settings and reload the app, enjoy!

      config.action_mailer.smtp_settings = {
        ...
        password: 'HERE', # <---
        authentication: 'plain',
        enable_starttls_auto: true
      }
    

提交回复
热议问题