質問編集履歴

6

修正

2019/06/20 11:54

投稿

avicii
avicii

スコア49

test CHANGED
File without changes
test CHANGED
@@ -154,7 +154,7 @@
154
154
 
155
155
 
156
156
 
157
- controller/tourist/done.html.erb
157
+ controller/tourist/done.controller.rb
158
158
 
159
159
  ```
160
160
 

5

修正

2019/06/20 11:54

投稿

avicii
avicii

スコア49

test CHANGED
File without changes
test CHANGED
@@ -1,4 +1,4 @@
1
- 今現在私は、mailerを使い、メールを送信しようと考えています。しかし、ターミナルでは送られたような動きがあるのですが、実際メールが送れていない状態になっています。もしわかるかたがいらしたら、教えていただきたいです。
1
+ 今現在私は、mailerを使い、メールを送信しようと考えています。(done.html.erbというページが開いた時に送られるようにたいと考えています)しかし、ターミナルでは送られたような動きがあるのですが、実際メールが送れていない状態になっています。もしわかるかたがいらしたら、教えていただきたいです。
2
2
 
3
3
 
4
4
 

4

修正

2019/06/19 13:09

投稿

avicii
avicii

スコア49

test CHANGED
File without changes
test CHANGED
@@ -138,9 +138,9 @@
138
138
 
139
139
  domain: 'smtp.gmail.com',
140
140
 
141
- user_name: 'chancetochance2018@gmail.com',
141
+ user_name: '******@gmail.com',
142
-
142
+
143
- password: 'fvxtgydljehlheli',
143
+ password: '**********',
144
144
 
145
145
  authentication: 'plain',
146
146
 

3

修正

2019/06/19 12:47

投稿

avicii
avicii

スコア49

test CHANGED
File without changes
test CHANGED
@@ -120,7 +120,9 @@
120
120
 
121
121
 
122
122
 
123
- ```config/environment/development.rb
123
+ config/environment/development.rb
124
+
125
+ ```
124
126
 
125
127
  config.consider_all_requests_local = true
126
128
 

2

修正

2019/06/19 12:46

投稿

avicii
avicii

スコア49

test CHANGED
File without changes
test CHANGED
@@ -118,6 +118,40 @@
118
118
 
119
119
  ```
120
120
 
121
+
122
+
123
+ ```config/environment/development.rb
124
+
125
+ config.consider_all_requests_local = true
126
+
127
+ config.action_controller.perform_caching = false
128
+
129
+ config.action_mailer.delivery_method = :smtp
130
+
131
+ config.action_mailer.smtp_settings = {
132
+
133
+ address: 'smtp.gmail.com',
134
+
135
+ port: 587,
136
+
137
+ domain: 'smtp.gmail.com',
138
+
139
+ user_name: 'chancetochance2018@gmail.com',
140
+
141
+ password: 'fvxtgydljehlheli',
142
+
143
+ authentication: 'plain',
144
+
145
+ enable_starttls_auto: true
146
+
147
+ }
148
+
149
+
150
+
151
+ ```
152
+
153
+
154
+
121
155
  controller/tourist/done.html.erb
122
156
 
123
157
  ```

1

修正

2019/06/19 12:45

投稿

avicii
avicii

スコア49

test CHANGED
@@ -1 +1 @@
1
- ターミナルで動いているので、メールが送信されていない状態になっています。
1
+ ターミナルで動いているのですが、メールが送信されていない状態になっています。
test CHANGED
File without changes