Mailer.php in Backup and Migrate 5.0.x
File
src/Core/Service/Mailer.php
View source
<?php
namespace Drupal\backup_migrate\Core\Service;
class Mailer implements MailerInterface {
public function send($to, $subject, $body, $replacements = [], $additional_headers = []) {
if (is_array($to)) {
$to = implode(',', $to);
}
if ($replacements) {
$subject = strtr($subject, $replacements);
$body = strtr($body, $replacements);
}
mail($to, $subject, $body, $additional_headers);
}
}
Classes
Name |
Description |
Mailer |
A very basic mailer that uses the php mail function. |