Answer the question
In order to leave comments, you need to log in
How to bypass the certificate error on yandex when sending a letter on Rails?
The second approach to sending emails from a Rails application. The first ended in failure six months ago.
smtp, yandex...
config/environments.rb:config.action_mailer.raise_delivery_errors = true
This allowed to display error messages about sending emails to the browser
ActionMailer::Base.smtp_settings = {
:enable_starttls_auto => true,
address:"smtp.yandex.ru",
port: 587,
domain: "127.0.0.1",
authentication: "plain",
user_name: "[email protected]",
password: "неверный пароль"
}
535 5.7.8 Error: authentication failed: Invalid user or password!
ActionMailer::Base.smtp_settings = {
:enable_starttls_auto => true,
address:"smtp.yandex.ru",
port: 587,
domain: "127.0.0.1",
authentication: "plain",
user_name: "[email protected]",
password: "верный пароль"
}
554 5.7.1 Message rejected under suspicion of SPAM
ActionMailer::Base.delivery_method = :smtp
ActionMailer::Base.smtp_settings = {
:enable_starttls_auto => false,
:tls => false,
address:"smtp.yandex.ru",
port: 587,
domain: "127.0.0.1",
authentication: "plain",
user_name: "[email protected]",
password: "верный пароль"
}
530 5.7.7 Email sending without SSL/TLS encryption is not allowed. Please see: help.yandex.ru/mail/mail-clients/ssl.xml
ActionMailer::Base.delivery_method = :smtp
ActionMailer::Base.smtp_settings = {
:enable_starttls_auto => false,
:tls => true,
address:"smtp.yandex.ru",
port: 587,
domain: "127.0.0.1",
authentication: "plain",
user_name: "[email protected]",
password: "верный пароль"
}
ActionMailer::Base.delivery_method = :smtp
ActionMailer::Base.smtp_settings = {
:enable_starttls_auto => true,
:tls => true,
address:"smtp.yandex.ru",
port: 587,
domain: "127.0.0.1",
authentication: "plain",
user_name: "[email protected]",
password: "верный пароль"
}
SSL_connect returned=1 errno=0 state=SSLv2/v3 read server hello A: unknown protocol
ActionMailer::Base.smtp_settings = {
:enable_starttls_auto => true,
# :openssl_verify_mode => 'none',
# :tls => true,
address:"smtp.yandex.ru",
port: 587,
domain: "127.0.0.1:3000",
authentication: "plain",
user_name: "[email protected]",
password: "верный пароль"
}
Answer the question
In order to leave comments, you need to log in
ActionMailer::Base.smtp_settings = {
:enable_starttls_auto => true,
address:"smtp.yandex.ru",
port: 587,
domain: "127.0.0.1:3000",
authentication: "plain",
user_name: "[email protected]",
password: "верный пароль"
}
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question