|
@@ -175,14 +175,14 @@ class SeminarSignUpController extends ApiController
|
175
|
175
|
|
176
|
176
|
if ($backupEmail) {
|
177
|
177
|
\Mail::send(['text'=>'mailTW'], $data, function($message) use ($companyEmail, $firstName, $backupEmail) {
|
178
|
|
- $message->to($companyEmail, $firstName)->subject('報名成功'); // Registration is complete
|
179
|
|
- $message->cc($backupEmail, $firstName)->subject('報名成功'); // Registration is complete
|
180
|
|
- $message->from('no-reply@erapr.com.tw','Arm Tech Symposia 2');
|
|
178
|
+ $message->to($companyEmail, $firstName)->subject('報名成功');
|
|
179
|
+ $message->cc($backupEmail, $firstName)->subject('報名成功');
|
|
180
|
+ $message->from(env('MAIL_USERNAME'),env('MAIL_FROM_NAME'));
|
181
|
181
|
});
|
182
|
182
|
} else {
|
183
|
183
|
\Mail::send(['text'=>'mailTW'], $data, function($message) use ($companyEmail, $firstName) {
|
184
|
|
- $message->to($companyEmail, $firstName)->subject('報名成功'); // Registration is complete
|
185
|
|
- $message->from('no-reply@erapr.com.tw','Arm Tech Symposia 2');
|
|
184
|
+ $message->to($companyEmail, $firstName)->subject('報名成功');
|
|
185
|
+ $message->from(env('MAIL_USERNAME'),env('MAIL_FROM_NAME'));
|
186
|
186
|
});
|
187
|
187
|
}
|
188
|
188
|
}
|
|
@@ -195,12 +195,14 @@ class SeminarSignUpController extends ApiController
|
195
|
195
|
\Mail::send(['text'=>'mailJP'], $data, function($message) use ($companyEmail, $firstName, $backupEmail) {
|
196
|
196
|
$message->to($companyEmail, $firstName)->subject('登録完了');
|
197
|
197
|
$message->cc($backupEmail, $firstName)->subject('登録完了');
|
198
|
|
- $message->from('no-reply@erapr.com.tw','Arm Tech Symposia 2');
|
|
198
|
+ $message->from(env('MAIL_USERNAME'),env('MAIL_FROM_NAME'));
|
|
199
|
+
|
199
|
200
|
});
|
200
|
201
|
} else {
|
201
|
202
|
\Mail::send(['text'=>'mailJP'], $data, function($message) use ($companyEmail, $firstName) {
|
202
|
203
|
$message->to($companyEmail, $firstName)->subject('登録完了');
|
203
|
|
- $message->from('no-reply@erapr.com.tw','Arm Tech Symposia 2');
|
|
204
|
+ $message->from(env('MAIL_USERNAME'),env('MAIL_FROM_NAME'));
|
|
205
|
+
|
204
|
206
|
});
|
205
|
207
|
}
|
206
|
208
|
}
|
|
@@ -213,12 +215,14 @@ class SeminarSignUpController extends ApiController
|
213
|
215
|
\Mail::send(['text'=>'mailKR'], $data, function($message) use ($companyEmail, $firstName, $backupEmail) {
|
214
|
216
|
$message->to($companyEmail, $firstName)->subject('등록이 완료되었습니다');
|
215
|
217
|
$message->cc($backupEmail, $firstName)->subject('등록이 완료되었습니다');
|
216
|
|
- $message->from('no-reply@erapr.com.tw','Arm Tech Symposia 2');
|
|
218
|
+ $message->from(env('MAIL_USERNAME'),env('MAIL_FROM_NAME'));
|
|
219
|
+
|
217
|
220
|
});
|
218
|
221
|
} else {
|
219
|
222
|
\Mail::send(['text'=>'mailKR'], $data, function($message) use ($companyEmail, $firstName) {
|
220
|
223
|
$message->to($companyEmail, $firstName)->subject('등록이 완료되었습니다');
|
221
|
|
- $message->from('no-reply@erapr.com.tw','Arm Tech Symposia 2');
|
|
224
|
+ $message->from(env('MAIL_USERNAME'),env('MAIL_FROM_NAME'));
|
|
225
|
+
|
222
|
226
|
});
|
223
|
227
|
}
|
224
|
228
|
}
|
|
@@ -231,12 +235,14 @@ class SeminarSignUpController extends ApiController
|
231
|
235
|
\Mail::send(['text'=>'mailEN'], $data, function($message) use ($companyEmail, $firstName, $backupEmail) {
|
232
|
236
|
$message->to($companyEmail, $firstName)->subject('Registration is complete');
|
233
|
237
|
$message->cc($backupEmail, $firstName)->subject('Registration is complete');
|
234
|
|
- $message->from('no-reply@erapr.com.tw','Arm Tech Symposia 2');
|
|
238
|
+ $message->from(env('MAIL_USERNAME'),env('MAIL_FROM_NAME'));
|
|
239
|
+
|
235
|
240
|
});
|
236
|
241
|
} else {
|
237
|
242
|
\Mail::send(['text'=>'mailEN'], $data, function($message) use ($companyEmail, $firstName) {
|
238
|
243
|
$message->to($companyEmail, $firstName)->subject('Registration is complete');
|
239
|
|
- $message->from('no-reply@erapr.com.tw','Arm Tech Symposia 2');
|
|
244
|
+ $message->from(env('MAIL_USERNAME'),env('MAIL_FROM_NAME'));
|
|
245
|
+
|
240
|
246
|
});
|
241
|
247
|
}
|
242
|
248
|
}
|