Enable Devise to Send email / setup email in rails app simple method

In config/application.rb

    config.action_mailer.raise_delivery_errors = true
    # set delivery method to :smtp, :sendmail or :test
    config.action_mailer.delivery_method = :smtp

    # these options are only needed if you choose smtp delivery
    config.action_mailer.smtp_settings = {
      :address        => 'smtp.gmail.com',
      :port           => 587,
      :domain         => 'gmail.com',
      :authentication => :login,
      :user_name      => 'email',
      :password       => 'password'

I am Senior Software Engineer. I love reading, writing, sharing,developing, hiking, movies, trips, mountains, brooks, hills etc.

Tagged with: , ,
Posted in devise, Ruby on Rails

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out /  Change )

Google+ photo

You are commenting using your Google+ account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )


Connecting to %s

%d bloggers like this: