//sendMail $event_id = 18; $arr = array('select' => '*', 'from' => '`web_event_form`', 'where' => "`id`='{$event_id}'", 'limit' => '1'); $data = $c->_model->_select($arr); $rowEvent = $data[0]; $arr = array('{_name}' => $row['name'], '{_user}' => $email, '{_numberdate}' => $numberdate); $content = $c->contentReplace($rowEvent['content'], $arr); $AddBCC = ''; if ($rowEvent['email'] != '') { $AddBCC = array('field' => $rowEvent['email'], 'name' => 'Stevbros'); } $AddAddress = array('field' => $email, 'name' => $row['name']); $arrSend = array('AddAddress' => $AddAddress, 'AddBCC' => $AddBCC, 'Subject' => $rowEvent['subject'], 'Body' => $content); $data = $c->sendMail($arrSend, 1); if (!preg_match("/error:/i", $data)) { $cM->_insertContactSendMail($row['name'], $email, $content, $event_id, $table, $customerid); $html->sendmail = true; } else { $html->sendmail = false; } } echo json_encode($html); return true; } /*web_event_form*/ function css_script() { $str = '<base href="' . CONS_BASE_URL . '/" /> <meta http-equiv="Content-Type" content="text/html; charset=utf-8" /> <link rel="stylesheet" type="text/css" href="themes/admin2/ad-general.css"> <link rel="stylesheet" type="text/css" href="themes/admin2/ad-style.css">