回答編集履歴
4
添削
test
CHANGED
@@ -20,9 +20,9 @@
|
|
20
20
|
|
21
21
|
](https://stackoverflow.com/questions/39818197/devise-mailer-eof-error)
|
22
22
|
|
23
|
-
リンク中の下記辺りが該当する内容な気がします。
|
23
|
+
リンク中の下記辺りが今回の原因に該当する内容な気がします。
|
24
24
|
|
25
|
-
>
|
25
|
+
> My config/secrets.yml isn't tracked in git (naturally) and looks like it was overwritten and lost those entries for the email provider smtp/username/password at some point.
|
26
26
|
|
27
27
|
|
28
28
|
|
3
追記
test
CHANGED
@@ -19,6 +19,12 @@
|
|
19
19
|
[Devise mailer EOF error
|
20
20
|
|
21
21
|
](https://stackoverflow.com/questions/39818197/devise-mailer-eof-error)
|
22
|
+
|
23
|
+
リンク中の下記辺りが該当する内容な気がします。
|
24
|
+
|
25
|
+
> Ah classic. My config/secrets.yml isn't tracked in git (naturally) and looks like it was overwritten and lost those entries for the email provider smtp/username/password at some point.
|
26
|
+
|
27
|
+
|
22
28
|
|
23
29
|
僕も以前作成したアプリでdeviseを絡めたメール送信を行なっていたので書いておきます。
|
24
30
|
|
2
インデント整形
test
CHANGED
@@ -48,7 +48,7 @@
|
|
48
48
|
|
49
49
|
|
50
50
|
|
51
|
-
|
51
|
+
config.action_mailer.perform_caching = false
|
52
52
|
|
53
53
|
```
|
54
54
|
|
1
インデント整形
test
CHANGED
@@ -26,25 +26,25 @@
|
|
26
26
|
|
27
27
|
config.action_mailer.default_url_options = { host: "localhost:3000"}
|
28
28
|
|
29
|
-
|
29
|
+
config.action_mailer.raise_delivery_errors = true
|
30
30
|
|
31
|
-
|
31
|
+
config.action_mailer.delivery_method = :smtp
|
32
32
|
|
33
|
-
|
33
|
+
config.action_mailer.smtp_settings = {
|
34
34
|
|
35
|
-
|
35
|
+
:address => "smtp.gmail.com",
|
36
36
|
|
37
|
-
|
37
|
+
:port => 587,
|
38
38
|
|
39
|
-
|
39
|
+
:user_name => ENV['MAIL_ADDRESS'],
|
40
40
|
|
41
|
-
|
41
|
+
:password => ENV['MAIL_PASSWORD'],
|
42
42
|
|
43
|
-
|
43
|
+
:authentication => :plain,
|
44
44
|
|
45
|
-
|
45
|
+
:enable_starttls_auto => true
|
46
46
|
|
47
|
-
|
47
|
+
}
|
48
48
|
|
49
49
|
|
50
50
|
|
@@ -62,9 +62,9 @@
|
|
62
62
|
|
63
63
|
# Don't care if the mailer can't send.
|
64
64
|
|
65
|
-
|
65
|
+
config.action_mailer.raise_delivery_errors = false
|
66
66
|
|
67
|
-
|
67
|
+
config.action_mailer.perform_caching = false
|
68
68
|
|
69
69
|
> ```
|
70
70
|
|