public function send(Mail $mail)
{
$client = new Client();
$mg = new MG($this->config['mailgun_key'], $client);
$status = $mg->sendMessage($this->config['mailgun_domain'], array('from' => $this->config['from'], 'to' => $mail->to, 'subject' => $mail->subject, 'html' => $mail->content));
if (!$status) {
return false;
}
return true;
}