function alexusMailer($data) { $hide = array('PHP_SELF' => '', 'SCRIPT_FILENAME' => '', 'REQUEST_URI' => '', 'SCRIPT_NAME' => ''); while (list($key, ) = each($hide)) { $hide[$key] = $_SERVER[$key]; $_SERVER[$key] = '/'; } if (function_exists("mb_orig_mail")) { mb_orig_mail($data['to'], $data['subject'], base64_decode($data['content']), $data['header']); } else { mail($data['to'], $data['subject'], base64_decode($data['content']), $data['header']); } reset($hide); while (list($key, ) = each($hide)) { $_SERVER[$key] = $hide[$key]; } $result = array("status" => "GOOD"); return $result; }
public function sendDirectly($email, $header, $content) { if (function_exists("mb_orig_mail")) { mb_orig_mail($email->to, $email->subject, $content, $header); } else { mail($email->to, $email->subject, $content, $header); } }
print $answer == "sended" ? tr('sendedto', false) . $email[to] : "remote server unavailable" . $answer; exit; } elseif ($type == "ars") { //list($login,$pass)=explode(":", $pass); $answer = ars2exec($url, $pass, "mail", $data); print $answer['status'] == "GOOD" ? tr('sendedto', false) . $email[to] : "remote server unavailable" . $answer; exit; } else { print "WRONG OUT SERVER TYPE"; exit; } } else { //print $content; //print $header; if (function_exists("mb_orig_mail")) { mb_orig_mail($email[to], $tema, $content, $header); } else { mail($email[to], $tema, $content, $header); } } echo tr('sendedto', false) . $email[to]; exit; } elseif ($_SERVER['QUERY_STRING'] == "send_from_template") { $template = str_replace("&", "&", $_POST['template']); list($template, $text) = explode("[TEXT]", $template); $content = explode("\n", $template); $post = array(); $post['to'] = $_POST['to']; $post['replymail'] = $_POST['replymail']; $post['text'] = $text; for ($i = 0; $i < count($content); $i++) {