public function sendMail($job, array $config, $message)
{
$host = $this->getHost();
$body = <<<EOF
{$message}
You can find its output in {$config['output']} on {$host}.
Best,
jobby@{$host}
EOF;
$mail = \Swift_Message::newInstance();
$mail->setTo(explode(',', $config['recipients']));
$mail->setSubject("[{$host}] '{$job}' needs some attention!");
$mail->setBody($body);
$mail->setFrom([$config['smtpSender'] => $config['smtpSenderName']]);
$mail->setSender($config['smtpSender']);
$mailer = $this->getCurrentMailer($config);
$mailer->send($mail);
return $mail;
}