function __SendMail() { //echo '__SendMail'; $to = $this->_GetParamDBValue('To'); $from = $this->_GetParamDBValue('From'); $subj = $this->_GetParamDBValue('Subject'); $body = $this->_GetParamDBValue('Body'); $isHTML = $this->_GetParamSimpleValue('IsHTML'); $mailConf = $this->_GetParamSimpleValue('ConfSendMail'); //echo "$from $to $mailConf"; if (!$from || !$to || !$mailConf) { return null; } // missing addresses or mail configuration if (!isset($subj)) { $subj = ''; } if (!isset($body)) { $body = ''; } if ($subj . $body === '') { return null; } // neither subject nor body specified $errorMsg = OEDynUtils::SendEmailSimple('DEFAULT', $mailConf, $from, $to, '', $subj, $body, $isHTML); if ($errorMsg) { $this->_AddOutput('_ErrorMessage', $errorMsg); echo "Mail error: {$errorMsg}<br/>"; } return null; }