Hi guys,
I was working on yandex smtp settings to send confirmation mail from devise. Firstly i have tried more times on development enviroment but no way… I read all documentation about Yandex.connect for custom email solution from custom domain. Then I solved! (Thanks to https://meta.discourse.org/t/not-able-to-send-email-net-readtimeout/98419/18)
So Yandex is forcing us about 465 port for smtp. I was using 587 for gmail and it was in success… Evgeny(the forum guy who i dropped link above) wrote a message ” We use several Discourse sites with Yandex. And everywhere with port 587 it works great. Port 465 did not work initially. “
Can you believe it? Yandex is officially telling us that smtp port is : 465 and we couldn’t take fine result… It worked when I tried Same gmail smtp port and it worked. Mistake is so basic… Port! Now i am dropping settings belove you can check and try it. (I know more people is searching on google like me because of Yandex!)
Settings(Development but you can use it for production mode while change the host)
config.action_mailer.perform_deliveries = true
config.action_mailer.raise_delivery_errors = true
config.action_mailer.default_url_options = { host: ‘localhost:3000’ }
config.action_mailer.delivery_method = :smtp
config.action_mailer.smtp_settings = {
user_name: ENV[‘YANDEX_EMAIL_ADDR’],
password: ENV[‘YANDEX_EMAIL_PASS’],
domain: ‘yandex.com’,
address: ‘smtp.yandex.com’,
port: ‘587’,
authentication: :plain,
enable_starttls_auto: true
}
I hope it can help for you.
Note: Sorry for my weak english 🙂