535-5.7.8 Username and Password not accepted

后端 未结 8 1828
逝去的感伤
逝去的感伤 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 01:55

    If you still cannot solve the problem after you turn on the less secure apps. The other possible reason which might cause this error is you are not using gmail account.

    -    : user_name  =>  'example@company.com' ,  # It can not be used since it is not a gmail address 
    +    : user_name  =>  'example@gmail.com' ,  # since it's a gmail address
    

    Refer to here.

    Also, bear in mind that it might take some times to enable the less secure apps. I have to do it several times (before it works, every time I access the link it will shows that it is off) and wait for a while until it really work.

提交回复
热议问题