· 8 years ago · Sep 02, 2017, 10:08 AM
1ActionMailer::Base.smtp_settings = {
2 :address => "smtp.yandex.ru",
3 :port => 465,
4 :domain => "yandex.ru",
5 :authentication => :login,
6 :user_name => "ssstest@yandex.com",
7 :password => "pwd567@",
8 :ssl=> true,
9 :enable_starttls_auto=> true,
10 :tls=> true
11}
12
13class UserMailer < ActionMailer::Base
14 default from: "ssstest@yandex.com"
15 ...
16end
17
18D, [2016-05-06T06:24:25.089270 #23566] DEBUG -- :
19 Devise::Mailer#confirmation_instructions: processed outbound mail in 954.3ms
20 I, [2016-05-06T06:24:26.500832 #23566] INFO -- :
21 Sent mail to sample_demo@yopmail.com (1408.8ms)
22 D, [2016-05-06T06:24:26.501240 #23566] DEBUG -- : Date: Fri, 06 May 2016 06:24:25 +0000
23 From: please-change-me-at-config-initializers-devise@example.com
24 Reply-To: please-change-me-at-config-initializers-devise@example.com
25 To: sample_demo@yopmail.com
26 Message-ID: <572c389917f09_5c0e10bb99411990@ip-10-65-178-51.mail>
27 Subject: Confirmation instructions
28 Mime-Version: 1.0
29 Content-Type: text/html;
30 charset=UTF-8
31 Content-Transfer-Encoding: 7bit
32
33config.mailer_sender = 'ssstest@yandex.com'
34
35port: 465
36authentication: login
37smtp_enable_starttls_auto: true
38smtp_openssl_verify_mode: true