public function __set($strKey, $varValue)
{
switch ($strKey) {
case 'subject':
$this->strSubject = preg_replace(array('/[\\t]+/', '/[\\n\\r]+/'), array(' ', ''), $varValue);
break;
case 'text':
$this->strText = \StringUtil::decodeEntities($varValue);
break;
case 'html':
$this->strHtml = $varValue;
break;
case 'from':
$this->strSender = $varValue;
break;
case 'fromName':
$this->strSenderName = $varValue;
break;
case 'priority':
switch ($varValue) {
case 1:
case 'highest':
$this->intPriority = 1;
break;
case 2:
case 'high':
$this->intPriority = 2;
break;
case 3:
case 'normal':
$this->intPriority = 3;
break;
case 4:
case 'low':
$this->intPriority = 4;
break;
case 5:
case 'lowest':
$this->intPriority = 5;
break;
}
break;
case 'charset':
$this->strCharset = $varValue;
break;
case 'imageDir':
$this->strImageDir = $varValue;
break;
case 'embedImages':
$this->blnEmbedImages = $varValue;
break;
case 'logFile':
$this->strLogFile = $varValue;
break;
default:
throw new \Exception(sprintf('Invalid argument "%s"', $strKey));
break;
}
}