Remove extra sending method check for new users.
mta.method is probably not set yet. MAILPOET-4929
This commit is contained in:
committed by
Aschepikov
parent
805804f3d3
commit
10ea5ec55b
@@ -136,13 +136,9 @@ class Activator {
|
||||
|
||||
if (!is_null($version)) return; // not a new user
|
||||
|
||||
$sendingMethodSet = $this->settings->get('mta.method', false);
|
||||
|
||||
if ($sendingMethodSet === 'PHPMail') {
|
||||
// check for valid mail function
|
||||
// check for valid mail function on new installs
|
||||
$this->settings->set(DisabledMailFunctionNotice::QUEUE_DISABLED_MAIL_FUNCTION_CHECK, true);
|
||||
}
|
||||
}
|
||||
|
||||
private function deleteAllMailPoetTablesAndData(): void {
|
||||
$prefix = Env::$dbPrefix;
|
||||
|
@@ -57,7 +57,7 @@ class DisabledMailFunctionNotice {
|
||||
$this->settings->set(self::QUEUE_DISABLED_MAIL_FUNCTION_CHECK, false);
|
||||
}
|
||||
|
||||
$sendingMethod = $this->settings->get('mta.method', false);
|
||||
$sendingMethod = $this->settings->get('mta.method', SettingsController::DEFAULT_SENDING_METHOD);
|
||||
$isPhpMailSendingMethod = $sendingMethod === Mailer::METHOD_PHPMAIL;
|
||||
|
||||
if (!$isPhpMailSendingMethod) {
|
||||
|
Reference in New Issue
Block a user