Files
piratepoet/mailpoet/lib/Mailer/Methods/PHPMail.php
Jan Lysý 5ee32e5f30 Add abstract parent for PHPMail method
For better reusability and prevention of duplicated code
[MAILPOET-4142]
2022-05-23 11:38:32 +02:00

15 lines
315 B
PHP

<?php declare(strict_types = 1);
namespace MailPoet\Mailer\Methods;
use PHPMailer\PHPMailer\PHPMailer;
class PHPMail extends PHPMailerMethod {
public function buildMailer(): PHPMailer {
$mailer = new PHPMailer(true);
// send using PHP's mail() function
$mailer->isMail();
return $mailer;
}
}