示例#1
0
 function sendEmailUser($xml, $form)
 {
     global $_site;
     if (($tpl = new template(is_file(PATH_TPL . $form->getAttribute('emailTplUser') . '.xsl') ? PATH_TPL . $form->getAttribute('emailTplUser') . '.xsl' : PATH_TPL . 'email_feedback_user.xsl')) && ($domain = $_site->de()->getAttribute('domain')) && ($content = $tpl->transform($xml)) && ($email = param('email')) && ($subject = $form->getAttribute('theme') ? $form->getAttribute('themeUser') : 'Your message has been sent to the site - ' . $domain) && ($mail = new mymail($_site->de()->getAttribute('fromEmail'), $email, $subject, $content)) && @$mail->send()) {
         return true;
     } else {
         return false;
     }
 }
示例#2
0
 function sendEmailUser($xml, $form)
 {
     if (($tpl = new template(file_exists($this->getSection()->getTemplatePath() . $form->getAttribute('emailTplUser') . '.xsl') ? $this->getSection()->getTemplatePath() . $form->getAttribute('emailTplUser') . '.xsl' : $this->getSection()->getTemplatePath() . 'email_feedback_user.xsl')) && ($content = $tpl->transform($xml)) && ($email = param('email')) && ($subject = $form->getAttribute('theme') ? $form->getAttribute('themeUser') : 'Your message has been sent to the site - ' . $domain) && ($mail = new mymail('no-reply@' . $domain, $email, $subject, $content)) && @$mail->send()) {
         return true;
     } else {
         return false;
     }
 }