質問編集履歴

1

devise.rbのmail.senderを追記しました

2019/10/26 11:46

投稿

TIshida
TIshida

スコア9

test CHANGED
@@ -1 +1 @@
1
- deviseのcomfirmable機能を使う際にでたエラー getaddrinfo: Name or service not known
1
+ devisedeviseのcomfirmable機能を使う際にでたエラー getaddrinfo: Name or service not known
test CHANGED
@@ -26,9 +26,11 @@
26
26
 
27
27
  ```html
28
28
 
29
+ >>>development.rb
30
+
29
31
  #default_url
30
32
 
31
- config.action_mailer.default_url_options = { host: '192.168.33.10', port: 3000 }
33
+ config.action_mailer.default_url_options = { host: '192.168.33.10:3000', port: 3000 }
32
34
 
33
35
 
34
36
 
@@ -56,6 +58,22 @@
56
58
 
57
59
  ```
58
60
 
61
+ ```html
62
+
63
+ >>>devise.rb
64
+
65
+ # ==> Mailer Configuration
66
+
67
+ # Configure the e-mail address which will be shown in Devise::Mailer,
68
+
69
+ # note that it will be overwritten if you use your own mailer class
70
+
71
+ # with default "from" parameter.
72
+
73
+ config.mailer_sender = '○○@gmail'
74
+
75
+ ```
76
+
59
77
  ### 試したこと
60
78
 
61
79
  メールアドレス・パスワードの確認、及びサーバーを再起動