Menu

Ror Sent Forgot your password? Email

April 6, 2015 - Rails

 

Sent Forget Your Password Code By :-

1) Go to -> YourApp -> Config -> environments -> development.rb (Paste Code Here).

config.action_mailer.default_url_options = { :host => ‘localhost:3000’ }

config.action_mailer.delivery_method = :smtp
config.action_mailer.smtp_settings = {
:address => “smtp.gmail.com”,
:port => 587,
:user_name => ENV[“ADMIN_EMAIL”],
:password => ENV[“PASSWORD”],
:authentication => “plain”,
:enable_starttls_auto => true
}
config.action_mailer.raise_delivery_errors = true

config.action_mailer.perform_deliveries = true

Leave a Reply