TYPO3 CMS  TYPO3_6-2
TYPO3\CMS\Core\Mail\MailerAdapterInterface Interface Reference
Inheritance diagram for TYPO3\CMS\Core\Mail\MailerAdapterInterface:
t3lib_mail_MailerAdapter TYPO3\CMS\Core\Mail\SwiftMailerAdapter t3lib_mail_SwiftMailerAdapter

Public Member Functions

 mail ($to, $subject, $messageBody, $additionalHeaders=NULL, $additionalParameters=NULL, $fakeSending=FALSE)
 

Detailed Description

This file is part of the TYPO3 CMS project.

It is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License, either version 2 of the License, or any later version.

For the full copyright and license information, please read the LICENSE.txt file that was distributed with this source code.

The TYPO3 project - inspiring people to share! Mailer Adapter interface

Author
Ingo Renner ingo@.nosp@m.typo.nosp@m.3.org

Definition at line 21 of file MailerAdapterInterface.php.

Member Function Documentation

◆ mail()

TYPO3\CMS\Core\Mail\MailerAdapterInterface::mail (   $to,
  $subject,
  $messageBody,
  $additionalHeaders = NULL,
  $additionalParameters = NULL,
  $fakeSending = FALSE 
)

Mail sending function

Parameters
string$toMail recipient.
string$subjectMail subject.
string$messageBodyMail body.
array$additionalHeadersAdditional mail headers.
array$additionalParametersAdditional mailer parameters.
boolean$fakeSendingWhether to fake sending or not, used in Unit Tests.
Returns
boolean TRUE if the mail was successfully sent, FALSE otherwise.

Implemented in TYPO3\CMS\Core\Mail\SwiftMailerAdapter.