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:
@@ -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
|
||||
|
Reference in New Issue
Block a user