Fix e-mail sending bug

This commit is contained in:
Sven Slootweg 2013-03-02 07:17:17 +01:00
parent ded01998b3
commit a8b0aa42fe

View file

@ -115,7 +115,9 @@ function send_mail($to, $subject, $text, $html)
$sMessage = Swift_Message::newInstance();
$sMessage->setSubject($subject);
$sMessage->setTo($to);
$sMessage->setFrom(array($cphp_config->smtp->from, $cphp_config->smtp->from_name));
$from = array();
$from[$cphp_config->smtp->from] = $cphp_config->smtp->from_name;
$sMessage->setFrom($from);
$sMessage->setBody($text);
$sMessage->addPart($html, "text/html");