Common
1 year ago
ErrorMappers
1 year ago
AmazonSES.php
1 year ago
MailPoet.php
2 years ago
MailerMethod.php
3 years ago
PHPMail.php
4 years ago
PHPMailerMethod.php
1 year ago
SMTP.php
3 weeks ago
SendGrid.php
1 year ago
index.php
3 years ago
PHPMail.php
18 lines
| 1 | <?php declare(strict_types = 1); |
| 2 | |
| 3 | namespace MailPoet\Mailer\Methods; |
| 4 | |
| 5 | if (!defined('ABSPATH')) exit; |
| 6 | |
| 7 | |
| 8 | use PHPMailer\PHPMailer\PHPMailer; |
| 9 | |
| 10 | class PHPMail extends PHPMailerMethod { |
| 11 | public function buildMailer(): PHPMailer { |
| 12 | $mailer = new PHPMailer(true); |
| 13 | // send using PHP's mail() function |
| 14 | $mailer->isMail(); |
| 15 | return $mailer; |
| 16 | } |
| 17 | } |
| 18 |