1 | <?php |
||
19 | final class PHPMailer extends AbstractAdapter |
||
20 | { |
||
21 | /** |
||
22 | * The mailer used to send messages. |
||
23 | * |
||
24 | * @var PHPMailerInstance |
||
25 | */ |
||
26 | private $mailer; |
||
27 | |||
28 | /** |
||
29 | * Initializes a new instance of this class. |
||
30 | * |
||
31 | * @param PHPMailerInstance $mailer |
||
32 | */ |
||
33 | public function __construct(PHPMailerInstance $mailer) |
||
37 | |||
38 | /** |
||
39 | * Sends a message to the given recipient. |
||
40 | * |
||
41 | * @param RecipientInterface $recipient The recipient that should receive the message. |
||
42 | * @param Message $message The message that should be sent. |
||
43 | * @param string $subject The subject of the message. |
||
44 | * @param string $text The plain text message. |
||
45 | * @param null|string $html An optional HTML version of the message. |
||
46 | */ |
||
47 | protected function sendToRecipient( |
||
76 | } |
||
77 |