generated from Nodarx/template
feat: smtp sending
Signed-off-by: Sebastian Krupinski <krupinski01@gmail.com>
This commit is contained in:
@@ -0,0 +1,22 @@
|
||||
<?php
|
||||
|
||||
declare(strict_types=1);
|
||||
|
||||
/**
|
||||
* SPDX-FileCopyrightText: Sebastian Krupinski <krupinski01@gmail.com>
|
||||
* SPDX-License-Identifier: AGPL-3.0-or-later
|
||||
*/
|
||||
|
||||
namespace KTXM\ProviderImap\Smtp;
|
||||
|
||||
enum ConnectionSecurity: string
|
||||
{
|
||||
case Plain = 'plain';
|
||||
case Tls = 'tls'; // implicit TLS (SMTPS, port 465)
|
||||
case StartTls = 'starttls';
|
||||
|
||||
public function transport(): string
|
||||
{
|
||||
return $this === self::Tls ? 'ssl' : 'tcp';
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user