Browse Source

Include a name in the e-mail sender

master
Sven Slootweg 9 years ago
parent
commit
ded01998b3
  1. 1
      config.json.example
  2. 2
      public_html/includes/base.php

1
config.json.example

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

2
public_html/includes/base.php

@ -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