Browse Source

Fix e-mail sending bug

master
Sven Slootweg 9 years ago
parent
commit
a8b0aa42fe
  1. 4
      public_html/includes/base.php

4
public_html/includes/base.php

@ -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…
Cancel
Save