1
0
mirror of https://github.com/e107inc/e107.git synced 2025-08-13 01:54:12 +02:00

Email notification improvements and fixes. (work in progress).

This commit is contained in:
Cameron
2015-05-12 01:45:00 -07:00
parent e4516a4ea7
commit 3a238bf622
8 changed files with 346 additions and 85 deletions

View File

@@ -527,6 +527,7 @@ class e107Email extends PHPMailer
*/
public function makeBody($message,$want_HTML = 1, $add_HTML_header = FALSE)
{
switch (varset($this->general_opts['textonly'],'off'))
{
case 'pref' : // Disable HTML as default
@@ -541,6 +542,8 @@ class e107Email extends PHPMailer
if ($want_HTML !== FALSE)
{
$message = e107::getParser()->toHtml("[html]".$message."[/html]",true);
if ($this->debug) echo "Generating multipart email<br />";
if ($add_HTML_header)
{