config/enviroments/development.rb
config.action_mailer.raise_delivery_errors = trueconfig.action_mailer.delivery_method = :smtphost = 'localhost:3000'config.action_mailer.default_url_options = { host: host } ActionMailer::Base.smtp_settings = { :address => "smtp.gmail.com", :port => 587, :user_name => "emailid", :password => 'password', :authentication => "plain", :enable_starttls_auto => true}