1 | <?php |
||
20 | final class SwiftMailer extends AbstractTransport |
||
21 | { |
||
22 | /** |
||
23 | * The mailer used to send messages. |
||
24 | * |
||
25 | * @var Swift_Mailer |
||
26 | */ |
||
27 | private $mailer; |
||
28 | |||
29 | /** |
||
30 | * Initializes a new instance of this class. |
||
31 | * |
||
32 | * @param Swift_Mailer $mailer |
||
33 | */ |
||
34 | public function __construct(Swift_Mailer $mailer) |
||
38 | |||
39 | /** |
||
40 | * Sends a message over the transport. |
||
41 | * |
||
42 | * @param array $recipients A list with all recipients that should receive the message. |
||
43 | * @param Message $message The message to send. |
||
44 | * @param string $subject The subject for this message. |
||
45 | * @param string $text The plain text template. |
||
46 | * @param null|string $html The HTML template. |
||
47 | * @return void |
||
48 | */ |
||
49 | public function send(array $recipients, Message $message, string $subject, string $text, ?string $html): void |
||
56 | |||
57 | /** |
||
58 | * Sends a message to the given recipient. |
||
59 | * |
||
60 | * @param RecipientInterface $recipient The recipient that should receive the message. |
||
61 | * @param Message $message The message that should be sent. |
||
62 | * @param string $subject The subject of the message. |
||
63 | * @param string $text The plain text message. |
||
64 | * @param null|string $html An optional HTML version of the message. |
||
65 | */ |
||
66 | private function sendToRecipient( |
||
93 | } |
||
94 |