Rails 4, how to correctly configure smtp settings (gmail)

后端 未结 5 608
半阙折子戏
半阙折子戏 2020-11-29 22:58

I am trying to create a contact form in Rails 4. I did some digging around here and was able to get most of the stuff to work. (followed @sethfri\'s work here Contact Form M

5条回答
  •  孤独总比滥情好
    2020-11-29 23:25

    Google recommends to use OAuth 2.0 for the login process. This configuration is "not so safe" for google, but they tolerate it. You have to allow "less safe connections" in your Google account settings or use the OAuth-way. https://developers.google.com/identity/protocols/OAuth2

    Their library for ruby is still alpha. There seem to be some gems extending ActionMailer for OAuth, but I never used them.

提交回复
热议问题