S
S
Stepan2020-04-25 11:16:23
Ruby on Rails
Stepan, 2020-04-25 11:16:23

How to set up mail forwarding in rails?

This is a tutorial project
. This is the second day I've been trying to send an email from rails with a link to reset my password.
The console shows what was sent, but nothing on the mail itself:
5ea3f1290aa11335729938.png
Here are my settings:
development.rb

config.action_mailer.delivery_method = :smtp
config.action_mailer.perform_deliveries = true
config.action_mailer.raise_delivery_errors = true

 ActionMailer::Base.smtp_settings = {
    :address        => 'smtp.sendgrid.net',
    :port           => 465,
    :authentication => :plain,
    :user_name => '[email protected]',
    :password => 'мой пароль',
    :domain         => 'localhost:3000',
    :enable_starttls_auto => true
}
config.action_mailer.default_url_options = { host: 'http://localhost:3000' }
config.action_mailer.asset_host = 'http://localhost:3000'

Answer the question

In order to leave comments, you need to log in

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question