You are here

interface MailerInterface in Backup and Migrate 8.4

Interface MailSenderInterface.

@package BackupMigrate\Core\Environment

Hierarchy

Expanded class hierarchy of MailerInterface

All classes that implement MailerInterface

File

lib/backup_migrate_core/src/Service/MailerInterface.php, line 10

Namespace

BackupMigrate\Core\Service
View source
interface MailerInterface {

  /**
   * @param string|array $to
   *      An RFC 2822 formatted to string or an array of them.
   * @param string $subject
   *      The subject of the email to be sent.
   * @param string $body
   *      The body of the message being sent.
   * @param array $replacements
   *      An array of string replacements for both the body and the subject.
   * @param array $additional_headers
   *      Additional headers to be added to the email if any.
   * @return mixed
   */
  public function send($to, $subject, $body, $replacements = [], $additional_headers = []);

}

Members