public function send(Mail $mail)
{
$headers = "MIME-Version: 1.0\r\n";
$headers .= "Content-Type: text/html;charset=utf-8\r\n";
$headers .= "Content-Transfer-Encoding: Base64\r\n";
$headers .= 'From: ' . $this->config['from'] . "\r\n";
$result = mail($mail->to, $mail->subject, base64_encode($mail->content), $headers);
return $result;
}