public function getTestEmail($image = '', $textColor = '', $backGroundColor = '', $containerBackgroundColor = '', $buttonTextColor = '', $buttonBackgroundColor = '')
{
$emailer = new Gdn_Email();
$email = $emailer->getEmailTemplate();
if ($image) {
$email->setImage($image);
}
if ($textColor) {
$email->setTextColor($textColor);
}
if ($backGroundColor) {
$email->setBackgroundColor($backGroundColor);
}
if ($backGroundColor) {
$email->setContainerBackgroundColor($containerBackgroundColor);
}
if ($buttonTextColor) {
$email->setDefaultButtonTextColor($buttonTextColor);
}
if ($buttonBackgroundColor) {
$email->setDefaultButtonBackgroundColor($buttonBackgroundColor);
}
$message = t('Test Email Message');
$email->setMessage($message)->setTitle(t('Test Email'))->setButton(externalUrl('/'), t('Check it out'));
$emailer->setEmailTemplate($email);
return $emailer;
}