1 | <?php |
||
20 | final class SwiftMailer extends AbstractAdapter |
||
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 to the given recipient. |
||
41 | * |
||
42 | * @param RecipientInterface $recipient The recipient that should receive the message. |
||
43 | * @param Message $message The message that should be sent. |
||
44 | * @param string $subject The subject of the message. |
||
45 | * @param string $text The plain text message. |
||
46 | * @param null|string $html An optional HTML version of the message. |
||
47 | */ |
||
48 | protected function sendToRecipient( |
||
75 | } |
||
76 |