質問編集履歴
7
コード
test
CHANGED
File without changes
|
test
CHANGED
@@ -92,213 +92,7 @@
|
|
92
92
|
|
93
93
|
|
94
94
|
|
95
|
-
```ここに言語を入力
|
96
95
|
|
97
|
-
return [
|
98
|
-
|
99
|
-
'driver' => env('MAIL_DRIVER', 'smtp'),
|
100
|
-
|
101
|
-
|
102
|
-
|
103
|
-
'host' => env('MAIL_HOST', 'smtp.gmail.com'),
|
104
|
-
|
105
|
-
|
106
|
-
|
107
|
-
'port' => env('MAIL_PORT', 587),
|
108
|
-
|
109
|
-
|
110
|
-
|
111
|
-
'from' => [
|
112
|
-
|
113
|
-
'address' => env('MAIL_FROM_ADDRESS', "rassaraway1213@gmail.com"),
|
114
|
-
|
115
|
-
'name' => env('MAIL_FROM_NAME', "haiki"),
|
116
|
-
|
117
|
-
],
|
118
|
-
|
119
|
-
'encryption' => env('MAIL_ENCRYPTION', 'tls'),
|
120
|
-
|
121
|
-
'username' => env('rassaraway1213@gmail.com'),
|
122
|
-
|
123
|
-
'password' => env('パスワード'),
|
124
|
-
|
125
|
-
'sendmail' => '/usr/sbin/sendmail -bs',
|
126
|
-
|
127
|
-
|
128
|
-
|
129
|
-
|
130
|
-
|
131
|
-
|
132
|
-
|
133
|
-
/*
|
134
|
-
|
135
|
-
|--------------------------------------------------------------------------
|
136
|
-
|
137
|
-
| E-Mail Encryption Protocol
|
138
|
-
|
139
|
-
|--------------------------------------------------------------------------
|
140
|
-
|
141
|
-
|
|
142
|
-
|
143
|
-
| Here you may specify the encryption protocol that should be used when
|
144
|
-
|
145
|
-
| the application send e-mail messages. A sensible default using the
|
146
|
-
|
147
|
-
| transport layer security protocol should provide great security.
|
148
|
-
|
149
|
-
|
|
150
|
-
|
151
|
-
*/
|
152
|
-
|
153
|
-
|
154
|
-
|
155
|
-
|
156
|
-
|
157
|
-
|
158
|
-
|
159
|
-
/*
|
160
|
-
|
161
|
-
|--------------------------------------------------------------------------
|
162
|
-
|
163
|
-
| SMTP Server Username
|
164
|
-
|
165
|
-
|--------------------------------------------------------------------------
|
166
|
-
|
167
|
-
|
|
168
|
-
|
169
|
-
| If your SMTP server requires a username for authentication, you should
|
170
|
-
|
171
|
-
| set it here. This will get used to authenticate with your server on
|
172
|
-
|
173
|
-
| connection. You may also set the "password" value below this one.
|
174
|
-
|
175
|
-
|
|
176
|
-
|
177
|
-
*/
|
178
|
-
|
179
|
-
|
180
|
-
|
181
|
-
/*
|
182
|
-
|
183
|
-
|--------------------------------------------------------------------------
|
184
|
-
|
185
|
-
| Sendmail System Path
|
186
|
-
|
187
|
-
|--------------------------------------------------------------------------
|
188
|
-
|
189
|
-
|
|
190
|
-
|
191
|
-
| When using the "sendmail" driver to send e-mails, we will need to know
|
192
|
-
|
193
|
-
| the path to where Sendmail lives on this server. A default path has
|
194
|
-
|
195
|
-
| been provided here, which will work well on most of your systems.
|
196
|
-
|
197
|
-
|
|
198
|
-
|
199
|
-
*/
|
200
|
-
|
201
|
-
|
202
|
-
|
203
|
-
|
204
|
-
|
205
|
-
|
206
|
-
|
207
|
-
/*
|
208
|
-
|
209
|
-
|--------------------------------------------------------------------------
|
210
|
-
|
211
|
-
| Markdown Mail Settings
|
212
|
-
|
213
|
-
|--------------------------------------------------------------------------
|
214
|
-
|
215
|
-
|
|
216
|
-
|
217
|
-
| If you are using Markdown based email rendering, you may configure your
|
218
|
-
|
219
|
-
| theme and component paths here, allowing you to customize the design
|
220
|
-
|
221
|
-
| of the emails. Or, you may simply stick with the Laravel defaults!
|
222
|
-
|
223
|
-
|
|
224
|
-
|
225
|
-
*/
|
226
|
-
|
227
|
-
|
228
|
-
|
229
|
-
'markdown' => [
|
230
|
-
|
231
|
-
'theme' => 'default',
|
232
|
-
|
233
|
-
|
234
|
-
|
235
|
-
'paths' => [
|
236
|
-
|
237
|
-
resource_path('views/vendor/mail'),
|
238
|
-
|
239
|
-
],
|
240
|
-
|
241
|
-
],
|
242
|
-
|
243
|
-
|
244
|
-
|
245
|
-
/*
|
246
|
-
|
247
|
-
|--------------------------------------------------------------------------
|
248
|
-
|
249
|
-
| Log Channel
|
250
|
-
|
251
|
-
|--------------------------------------------------------------------------
|
252
|
-
|
253
|
-
|
|
254
|
-
|
255
|
-
| If you are using the "log" driver, you may specify the logging channel
|
256
|
-
|
257
|
-
| if you prefer to keep mail messages separate from other log entries
|
258
|
-
|
259
|
-
| for simpler reading. Otherwise, the default channel will be used.
|
260
|
-
|
261
|
-
|
|
262
|
-
|
263
|
-
*/
|
264
|
-
|
265
|
-
|
266
|
-
|
267
|
-
'log_channel' => env('MAIL_LOG_CHANNEL'),
|
268
|
-
|
269
|
-
|
270
|
-
|
271
|
-
];
|
272
|
-
|
273
|
-
|
274
|
-
|
275
|
-
|
276
|
-
|
277
|
-
|
278
|
-
|
279
|
-
```
|
280
|
-
|
281
|
-
|
282
|
-
|
283
|
-
```ここに言語を入力
|
284
|
-
|
285
|
-
MAIL_DRIVER=smtp
|
286
|
-
|
287
|
-
MAIL_HOST=smtp.gmail.com
|
288
|
-
|
289
|
-
MAIL_PORT=587
|
290
|
-
|
291
|
-
MAIL_USERNAME=rassaraway1213@gmail.com
|
292
|
-
|
293
|
-
MAIL_PASSWORD=パスワード
|
294
|
-
|
295
|
-
MAIL_ENCRYPTION=
|
296
|
-
|
297
|
-
MAIL_FROM_ADDRESS=rassaraway1213@gmail.com
|
298
|
-
|
299
|
-
MAIL_FROM_NAME=haiki
|
300
|
-
|
301
|
-
```
|
302
96
|
|
303
97
|
|
304
98
|
|
6
コードの追加
test
CHANGED
@@ -1 +1 @@
|
|
1
|
-
laravel
|
1
|
+
laravel✖️heroku でgmail送信をしたい
|
test
CHANGED
File without changes
|
5
コード追加
test
CHANGED
File without changes
|
test
CHANGED
@@ -80,6 +80,8 @@
|
|
80
80
|
|
81
81
|
アプリパスワードの作り直し
|
82
82
|
|
83
|
+
config:cacheをする
|
84
|
+
|
83
85
|
|
84
86
|
|
85
87
|
|
4
コードの追加
test
CHANGED
File without changes
|
test
CHANGED
@@ -90,7 +90,213 @@
|
|
90
90
|
|
91
91
|
|
92
92
|
|
93
|
-
|
93
|
+
```ここに言語を入力
|
94
|
+
|
95
|
+
return [
|
96
|
+
|
97
|
+
'driver' => env('MAIL_DRIVER', 'smtp'),
|
98
|
+
|
99
|
+
|
100
|
+
|
101
|
+
'host' => env('MAIL_HOST', 'smtp.gmail.com'),
|
102
|
+
|
103
|
+
|
104
|
+
|
105
|
+
'port' => env('MAIL_PORT', 587),
|
106
|
+
|
107
|
+
|
108
|
+
|
109
|
+
'from' => [
|
110
|
+
|
111
|
+
'address' => env('MAIL_FROM_ADDRESS', "rassaraway1213@gmail.com"),
|
112
|
+
|
113
|
+
'name' => env('MAIL_FROM_NAME', "haiki"),
|
114
|
+
|
115
|
+
],
|
116
|
+
|
117
|
+
'encryption' => env('MAIL_ENCRYPTION', 'tls'),
|
118
|
+
|
119
|
+
'username' => env('rassaraway1213@gmail.com'),
|
120
|
+
|
121
|
+
'password' => env('パスワード'),
|
122
|
+
|
123
|
+
'sendmail' => '/usr/sbin/sendmail -bs',
|
124
|
+
|
125
|
+
|
126
|
+
|
127
|
+
|
128
|
+
|
129
|
+
|
130
|
+
|
131
|
+
/*
|
132
|
+
|
133
|
+
|--------------------------------------------------------------------------
|
134
|
+
|
135
|
+
| E-Mail Encryption Protocol
|
136
|
+
|
137
|
+
|--------------------------------------------------------------------------
|
138
|
+
|
139
|
+
|
|
140
|
+
|
141
|
+
| Here you may specify the encryption protocol that should be used when
|
142
|
+
|
143
|
+
| the application send e-mail messages. A sensible default using the
|
144
|
+
|
145
|
+
| transport layer security protocol should provide great security.
|
146
|
+
|
147
|
+
|
|
148
|
+
|
149
|
+
*/
|
150
|
+
|
151
|
+
|
152
|
+
|
153
|
+
|
154
|
+
|
155
|
+
|
156
|
+
|
157
|
+
/*
|
158
|
+
|
159
|
+
|--------------------------------------------------------------------------
|
160
|
+
|
161
|
+
| SMTP Server Username
|
162
|
+
|
163
|
+
|--------------------------------------------------------------------------
|
164
|
+
|
165
|
+
|
|
166
|
+
|
167
|
+
| If your SMTP server requires a username for authentication, you should
|
168
|
+
|
169
|
+
| set it here. This will get used to authenticate with your server on
|
170
|
+
|
171
|
+
| connection. You may also set the "password" value below this one.
|
172
|
+
|
173
|
+
|
|
174
|
+
|
175
|
+
*/
|
176
|
+
|
177
|
+
|
178
|
+
|
179
|
+
/*
|
180
|
+
|
181
|
+
|--------------------------------------------------------------------------
|
182
|
+
|
183
|
+
| Sendmail System Path
|
184
|
+
|
185
|
+
|--------------------------------------------------------------------------
|
186
|
+
|
187
|
+
|
|
188
|
+
|
189
|
+
| When using the "sendmail" driver to send e-mails, we will need to know
|
190
|
+
|
191
|
+
| the path to where Sendmail lives on this server. A default path has
|
192
|
+
|
193
|
+
| been provided here, which will work well on most of your systems.
|
194
|
+
|
195
|
+
|
|
196
|
+
|
197
|
+
*/
|
198
|
+
|
199
|
+
|
200
|
+
|
201
|
+
|
202
|
+
|
203
|
+
|
204
|
+
|
205
|
+
/*
|
206
|
+
|
207
|
+
|--------------------------------------------------------------------------
|
208
|
+
|
209
|
+
| Markdown Mail Settings
|
210
|
+
|
211
|
+
|--------------------------------------------------------------------------
|
212
|
+
|
213
|
+
|
|
214
|
+
|
215
|
+
| If you are using Markdown based email rendering, you may configure your
|
216
|
+
|
217
|
+
| theme and component paths here, allowing you to customize the design
|
218
|
+
|
219
|
+
| of the emails. Or, you may simply stick with the Laravel defaults!
|
220
|
+
|
221
|
+
|
|
222
|
+
|
223
|
+
*/
|
224
|
+
|
225
|
+
|
226
|
+
|
227
|
+
'markdown' => [
|
228
|
+
|
229
|
+
'theme' => 'default',
|
230
|
+
|
231
|
+
|
232
|
+
|
233
|
+
'paths' => [
|
234
|
+
|
235
|
+
resource_path('views/vendor/mail'),
|
236
|
+
|
237
|
+
],
|
238
|
+
|
239
|
+
],
|
240
|
+
|
241
|
+
|
242
|
+
|
243
|
+
/*
|
244
|
+
|
245
|
+
|--------------------------------------------------------------------------
|
246
|
+
|
247
|
+
| Log Channel
|
248
|
+
|
249
|
+
|--------------------------------------------------------------------------
|
250
|
+
|
251
|
+
|
|
252
|
+
|
253
|
+
| If you are using the "log" driver, you may specify the logging channel
|
254
|
+
|
255
|
+
| if you prefer to keep mail messages separate from other log entries
|
256
|
+
|
257
|
+
| for simpler reading. Otherwise, the default channel will be used.
|
258
|
+
|
259
|
+
|
|
260
|
+
|
261
|
+
*/
|
262
|
+
|
263
|
+
|
264
|
+
|
265
|
+
'log_channel' => env('MAIL_LOG_CHANNEL'),
|
266
|
+
|
267
|
+
|
268
|
+
|
269
|
+
];
|
270
|
+
|
271
|
+
|
272
|
+
|
273
|
+
|
274
|
+
|
275
|
+
|
276
|
+
|
277
|
+
```
|
278
|
+
|
279
|
+
|
280
|
+
|
281
|
+
```ここに言語を入力
|
282
|
+
|
283
|
+
MAIL_DRIVER=smtp
|
284
|
+
|
285
|
+
MAIL_HOST=smtp.gmail.com
|
286
|
+
|
287
|
+
MAIL_PORT=587
|
288
|
+
|
289
|
+
MAIL_USERNAME=rassaraway1213@gmail.com
|
290
|
+
|
291
|
+
MAIL_PASSWORD=パスワード
|
292
|
+
|
293
|
+
MAIL_ENCRYPTION=
|
294
|
+
|
295
|
+
MAIL_FROM_ADDRESS=rassaraway1213@gmail.com
|
296
|
+
|
297
|
+
MAIL_FROM_NAME=haiki
|
298
|
+
|
299
|
+
```
|
94
300
|
|
95
301
|
|
96
302
|
|
3
コード
test
CHANGED
File without changes
|
test
CHANGED
@@ -72,6 +72,26 @@
|
|
72
72
|
|
73
73
|
|
74
74
|
|
75
|
+
### 試したこと
|
76
|
+
|
77
|
+
|
78
|
+
|
79
|
+
googleの安全性の低いアプリの許可」を有効にする
|
80
|
+
|
81
|
+
アプリパスワードの作り直し
|
82
|
+
|
83
|
+
|
84
|
+
|
85
|
+
|
86
|
+
|
87
|
+
進展がなく困っています。。。
|
88
|
+
|
89
|
+
|
90
|
+
|
91
|
+
|
92
|
+
|
93
|
+
|
94
|
+
|
75
95
|
|
76
96
|
|
77
97
|
|
2
エラーの追加
test
CHANGED
File without changes
|
test
CHANGED
@@ -34,7 +34,7 @@
|
|
34
34
|
|
35
35
|
```ここに言語を入力
|
36
36
|
|
37
|
-
Expected response code 250 but got code "530", with message "530-5.7.0 Authentication Required.
|
37
|
+
Expected response code 250 but got code "530", with message "530-5.7.0 Authentication Required. Learn more at 530 5.7.0 https://support.google.com/mail/?p=WantAuthError b2sm4109633qto.82 - gsmtp "
|
38
38
|
|
39
39
|
```
|
40
40
|
|
1
コードの追加
test
CHANGED
File without changes
|
test
CHANGED
@@ -41,3 +41,43 @@
|
|
41
41
|
|
42
42
|
|
43
43
|
何か原因と考えられることはありますでしょうか・・
|
44
|
+
|
45
|
+
|
46
|
+
|
47
|
+
|
48
|
+
|
49
|
+
orderController.php
|
50
|
+
|
51
|
+
```ここに言語を入力
|
52
|
+
|
53
|
+
$buyer = Auth::guard('buyers')->user();
|
54
|
+
|
55
|
+
$shop =$user;
|
56
|
+
|
57
|
+
$buyer_name =$buyer;
|
58
|
+
|
59
|
+
$to = [
|
60
|
+
|
61
|
+
$shop->email,
|
62
|
+
|
63
|
+
$buyer_name->email,
|
64
|
+
|
65
|
+
];
|
66
|
+
|
67
|
+
|
68
|
+
|
69
|
+
Mail::to($to)->send(new PurchaseNotification($shop, $product,$buyer_name));
|
70
|
+
|
71
|
+
```
|
72
|
+
|
73
|
+
|
74
|
+
|
75
|
+
|
76
|
+
|
77
|
+
|
78
|
+
|
79
|
+
### 環境
|
80
|
+
|
81
|
+
mysql
|
82
|
+
|
83
|
+
laravel5.8
|