Esempio n. 1
0
File: Mail.php Progetto: rjha/sc
 static function newAccountMail($name, $email)
 {
     $templates = \com\indigloo\sc\html\Mail::getNewAccount($name);
     $text = $templates["text"];
     $html = $templates["html"];
     $subject = Config::getInstance()->get_value("new.account.subject");
     $from = Config::getInstance()->get_value("default.mail.address");
     $fromName = Config::getInstance()->get_value("default.mail.name");
     $tos = array($email);
     $code = \com\indigloo\mail\SendGrid::sendViaWeb($tos, $from, $fromName, $subject, $text, $html);
     return $code;
 }