| @@ -125,9 +125,15 @@ class EmailManager | |||||
| if (app()->environment([EnvironmentName::STAGING->value])) { | if (app()->environment([EnvironmentName::STAGING->value])) { | ||||
| $email = $this->model->email; | $email = $this->model->email; | ||||
| if (!Str::endsWith($email, ['@satellite-tech.co.jp', '@sute.jp', '@kyoto-public.or.jp'])) { | if (!Str::endsWith($email, ['@satellite-tech.co.jp', '@sute.jp', '@kyoto-public.or.jp'])) { | ||||
| // 送信NG | |||||
| info(sprintf("ローカル環境Email送信対象外アドレスのため、メール送信スキップ [%s]", $email)); | |||||
| return; | |||||
| $emailRewrite = config('mail.developmentEmail'); | |||||
| if ($emailRewrite) { | |||||
| // 送信先書き換え | |||||
| $this->model->email = $emailRewrite; | |||||
| } else { | |||||
| // 送信NG | |||||
| info(sprintf("ステージング環境Email送信対象外アドレスのため、メール送信スキップ [%s]", $email)); | |||||
| return; | |||||
| } | |||||
| } | } | ||||
| } | } | ||||