Answer the question
In order to leave comments, you need to log in
Can't complete the registration confirmation in the devise gem?
Hello,
I can't complete the registration confirmation in the devise gem.
Migration as in the documentation did, all the fields were added, and everything was also added to the User model.
After that, an error about SMTP came out and I started to fix it. I use Yandex and Cloudflare.
CloudFlare config:
@ mx.yandex.ru 10
If I go to Yandex mail, everything goes fine to another email. But then the question arose about setting up smtp in rails itself.
In application_controller.rb added:
ActionMailer::Base.smtp_settings = {
:address => 'smtp.yandex.ru',
:port => 465,
:domain => '####domain',
:user_name => 'no-reply',
:password => '####password',
:authentication => 'plain'
Answer the question
In order to leave comments, you need to log in
Try adding to the hash
something like this:
config.action_mailer.smtp_settings = {
address: 'smtp.gmail.com',
port: 587,
domain: '***************',
user_name: '***************',
password: '*******************',
authentication: 'plain',
enable_starttls_auto: true
}
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question