You are here

MailerInterface.php in Backup and Migrate 8.4

File

lib/backup_migrate_core/src/Service/MailerInterface.php
View source
<?php

namespace BackupMigrate\Core\Service;


/**
 * Interface MailSenderInterface.
 *
 * @package BackupMigrate\Core\Environment
 */
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 = []);

}

Interfaces

Namesort descending Description
MailerInterface Interface MailSenderInterface.