Code Coverage |
||||||||||
Lines |
Functions and Methods |
Classes and Traits |
||||||||
| Total | n/a |
0 / 0 |
n/a |
0 / 0 |
CRAP | n/a |
0 / 0 |
|||
| SmtpTransactionPattern | n/a |
0 / 0 |
n/a |
0 / 0 |
0 | n/a |
0 / 0 |
|||
| 1 | <?php |
| 2 | /** |
| 3 | * Jingga |
| 4 | * |
| 5 | * PHP Version 8.1 |
| 6 | * |
| 7 | * @package phpOMS\Message\Mail |
| 8 | * @copyright Dennis Eichhorn |
| 9 | * @license OMS License 2.0 |
| 10 | * @version 1.0.0 |
| 11 | * @link https://jingga.app |
| 12 | */ |
| 13 | declare(strict_types=1); |
| 14 | |
| 15 | namespace phpOMS\Message\Mail; |
| 16 | |
| 17 | use phpOMS\Stdlib\Base\Enum; |
| 18 | |
| 19 | /** |
| 20 | * Transaction types enum. |
| 21 | * |
| 22 | * @package phpOMS\Message\Mail |
| 23 | * @license OMS License 2.0 |
| 24 | * @link https://jingga.app |
| 25 | * @since 1.0.0 |
| 26 | */ |
| 27 | abstract class SmtpTransactionPattern extends Enum |
| 28 | { |
| 29 | public const EXIM = '/[\d]{3} OK id=(.*)/'; |
| 30 | |
| 31 | public const SENDMAIL = '/[\d]{3} 2.0.0 (.*) Message/'; |
| 32 | |
| 33 | public const POSTFIX = '/[\d]{3} 2.0.0 Ok: queued as (.*)/'; |
| 34 | |
| 35 | public const MICROSOFT_ESMTP = '/[0-9]{3} 2.[\d].0 (.*)@(?:.*) Queued mail for delivery/'; |
| 36 | |
| 37 | public const AMAZON_SES = '/[\d]{3} Ok (.*)/'; |
| 38 | |
| 39 | public const SENDGRID = '/[\d]{3} Ok: queued as (.*)/'; |
| 40 | |
| 41 | public const CAMPAIGNMONITOR = '/[\d]{3} 2.0.0 OK:([a-zA-Z\d]{48})/'; |
| 42 | |
| 43 | public const HARAKA = '/[\d]{3} Message Queued \((.*)\)/'; |
| 44 | |
| 45 | public const ZONEMTA = '/[\d]{3} Message queued as (.*)/'; |
| 46 | |
| 47 | public const MAILJET = '/[\d]{3} OK queued as (.*)/'; |
| 48 | } |