From e74b737441c2477cc6ab38efe7d24957f17f51bd Mon Sep 17 00:00:00 2001 From: David Bomba Date: Fri, 25 Feb 2022 14:56:13 +1100 Subject: [PATCH] Disable gmail email sending on self hosted if importing from hosted platform to self hosted --- app/Jobs/Util/Import.php | 3 +++ 1 file changed, 3 insertions(+) diff --git a/app/Jobs/Util/Import.php b/app/Jobs/Util/Import.php index 52fff144557d..89a89458c2d8 100644 --- a/app/Jobs/Util/Import.php +++ b/app/Jobs/Util/Import.php @@ -374,6 +374,9 @@ class Import implements ShouldQueue $data['subdomain'] = MultiDB::randomSubdomainGenerator(); } + else { + $data['email_sending_method'] = 'default'; + } $rules = (new UpdateCompanyRequest())->rules();