AmazonSESMapper.php
3 years ago
BlacklistErrorMapperTrait.php
3 years ago
ConnectionErrorMapperTrait.php
3 years ago
MailPoetMapper.php
1 year ago
PHPMailMapper.php
4 years ago
PHPMailerMapper.php
3 years ago
SMTPMapper.php
4 years ago
SendGridMapper.php
3 years ago
index.php
3 years ago
ConnectionErrorMapperTrait.php
19 lines
| 1 | <?php // phpcs:ignore SlevomatCodingStandard.TypeHints.DeclareStrictTypes.DeclareStrictTypesMissing |
| 2 | |
| 3 | namespace MailPoet\Mailer\Methods\ErrorMappers; |
| 4 | |
| 5 | if (!defined('ABSPATH')) exit; |
| 6 | |
| 7 | |
| 8 | use MailPoet\Mailer\MailerError; |
| 9 | |
| 10 | trait ConnectionErrorMapperTrait { |
| 11 | public function getConnectionError($message) { |
| 12 | return new MailerError( |
| 13 | MailerError::OPERATION_CONNECT, |
| 14 | MailerError::LEVEL_HARD, |
| 15 | $message |
| 16 | ); |
| 17 | } |
| 18 | } |
| 19 |