Include a name in the e-mail sender

master
Sven Slootweg 12 years ago
parent 4f8501d5b7
commit ded01998b3

@ -38,6 +38,7 @@
},
"smtp": {
"from": "admin@redonate.net",
"from_name": "ReDonate",
"host": "localhost",
"port": 25,
"username": "root",

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

Loading…
Cancel
Save