1 | <?php |
||
24 | class EmailService |
||
25 | { |
||
26 | |||
27 | /** |
||
28 | * Mailmessage |
||
29 | * |
||
30 | * @var \TYPO3\CMS\Core\Mail\MailMessage |
||
31 | */ |
||
32 | protected $mailer = null; |
||
33 | |||
34 | /** |
||
35 | * Constructor - creates new instance of mailer |
||
36 | */ |
||
37 | public function __construct() |
||
41 | |||
42 | /** |
||
43 | * Sends an e-mail, if sender and recipient is an valid e-mail address |
||
44 | * |
||
45 | * @param string $sender The sender |
||
46 | * @param string $recipient The recipient |
||
47 | * @param string $subject The subject |
||
48 | * @param string $body E-Mail body |
||
49 | * @param string $name Optional sendername |
||
50 | * |
||
51 | * @return bool TRUE/FALSE if message is sent |
||
52 | */ |
||
53 | public function sendEmailMessage($sender, $recipient, $subject, $body, $name = null) |
||
66 | } |