public function MailsystemDelegateMailSystem::mail in Mail System 7.3
Implements MailSystemInterface::mail().
Retrieve the configured class responsible for delivering a message of a given module and mail-key. Forwards the call to that class.
Overrides MailSystemInterface::mail
File
- ./
MailsystemDelegateMailSystem.inc, line 32 - Class for formatting and actually sending a message.
Class
- MailsystemDelegateMailSystem
- A mailsystem delegate implementation that forwards to another implementation.
Code
public function mail(array $message) {
$module = $message['module'];
$key = $message['key'];
$mailsystem = _mailsystem_delegate_get_mailsystem($module, $key, 'mail');
return $mailsystem
->mail($message);
}