Fix e-mail sending bug
This commit is contained in:
parent
ded01998b3
commit
a8b0aa42fe
|
@ -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");
|
||||
|
||||
|
|
Loading…
Reference in a new issue