fix torrent edit and send email

This commit is contained in:
xiaomlove
2025-01-20 00:47:31 +08:00
parent 9de6fb42a9
commit d06d677565
3 changed files with 4 additions and 2 deletions

View File

@@ -329,7 +329,8 @@ class ToolRepository extends BaseRepository
}
// Create the Transport
$transport = $factory->create(new Dsn(
$encryption === 'tls' ? (($smtp['smtpport'] == 465) ? 'smtps' : 'smtp') : '',
// $encryption === 'tls' ? (($smtp['smtpport'] == 465) ? 'smtps' : 'smtp') : '',
$smtp['smtpport'] == 465 && in_array($encryption, ['ssl', 'tls']) ? 'smtps' : 'smtp',
$smtp['smtpaddress'],
$smtp['accountname'] ?? null,
$smtp['accountpassword'] ?? null,