Tyler DeWitt
Tyler DeWitt

Reputation: 23576

Send email with devise Rails 3.2

Are these two lines equivalent:

ActionMailer::Base.smtp_settings = {

config.action_mailer.smtp_settings ={

I'm trying to configure devise to send emails and have been looking at multiple guides. Some seem to use the top line, while others use the bottom.

I'm on rails 3.2. Is one of these new to 3.2?

Thanks

Upvotes: 0

Views: 736

Answers (1)

Muhammad Sannan Khalid
Muhammad Sannan Khalid

Reputation: 3137

If you want to send email then use this guide. Both lines are Equivalent.

gmail smtp with rails 3

Upvotes: 2

Related Questions