1
0
mirror of https://github.com/e107inc/e107.git synced 2025-07-31 03:40:37 +02:00

Added mail preview window to admin->mailout.

This commit is contained in:
Cameron
2014-10-18 03:19:45 -07:00
parent 9eb415abae
commit f689d6ae9c
4 changed files with 49 additions and 3 deletions

View File

@@ -594,6 +594,26 @@ class e107Email extends PHPMailer
}
}
/**
* Preview the BODY of an email
* @param $eml - array.
*/
public function preview($eml)
{
if (count($eml))
{
if($error = $this->arraySet($eml)) // Set parameters from list
{
return $error;
}
}
return $this->Body;
}
/**
* Sets one or more parameters from an array. See @see{sendEmail()} for list of parameters