ruby on rails - how to set up restful_authentication email activation using gmail SMTP? -
I have restful_authentcation installed from technoweenie with activation, and therefore I created the user mileer < ActionMailer :: Base.
However, the instructions do not include how to set it to work with Google SMTP.
I need to be estimate /development.rb to be SMTP settings, but it is still not certain that Google (through Google apps) is all TLS .
Is anyone setting up activation using restful_authentication?
The environment in the following RB:
ActionMiliter :: base. Smtp_settings = {: enable_starttls_auto = & gt; Truth: Address = & gt; "Smtp.gmail.com" ,: port = & gt; "587",: domain = & gt; "Mydomain.com" ,: Authentication = & gt; : Plain ,: user_name = & gt; "Xxx@mydomain.com" ,: Password => "Mypassword"} Thanks!
As far as I know, ActionMailer does not have TLS outside the box (2.3.2). A few months ago I got a single issue and got a code on a Japanese page and it was unified. It appears that the code has now been wrapped in a plugin (with English Docs!) It is not exactly what I am using, but it advertises the same effect.
Add this plugin:
And in the environment / development.rb or environements.rb you need something like this:
activator :: Base smtp_settings = {: address = & gt; "Smtp.gmail.com" ,: port = & gt; 587,: domain = & gt; "Yourdomain.com" ,: user_name = & gt; "First.last@gmail.com" ,: Password => "Passwd" ,: Authentication = & gt; : Plain} I think: enable_starttls_auto => is now true in docs, but it was not when I started. This works at least for me ...
EDIT: If you follow this link, then it does not work on it, but paste it into the address bar and it's live. .
Comments
Post a Comment