diff --git a/app/config/variables.php b/app/config/variables.php index ffc3cb998d..13bde2d04f 100644 --- a/app/config/variables.php +++ b/app/config/variables.php @@ -408,7 +408,7 @@ return [ ], [ 'name' => '_APP_SMTP_SECURE', - 'description' => 'SMTP secure connection protocol. Empty by default, change to \'tls\' if running on a secure connection.', + 'description' => 'SMTP secure connection protocol. Empty by default, change to \'tls\' or \'ssl\' if running on a secure connection.', 'introduction' => '', 'default' => '', 'required' => false, diff --git a/app/controllers/api/projects.php b/app/controllers/api/projects.php index 8314a21f30..9e08c3774a 100644 --- a/app/controllers/api/projects.php +++ b/app/controllers/api/projects.php @@ -1446,7 +1446,7 @@ App::patch('/v1/projects/:projectId/smtp') ->param('port', 587, new Integer(), 'SMTP server port', true) ->param('username', '', new Text(0, 0), 'SMTP server username', true) ->param('password', '', new Text(0, 0), 'SMTP server password', true) - ->param('secure', '', new WhiteList(['tls'], true), 'Does SMTP server use secure connection', true) + ->param('secure', '', new WhiteList(['tls', 'ssl'], true), 'Does SMTP server use secure connection', true) ->inject('response') ->inject('dbForConsole') ->action(function (string $projectId, bool $enabled, string $senderName, string $senderEmail, string $replyTo, string $host, int $port, string $username, string $password, string $secure, Response $response, Database $dbForConsole) {