Advertisement
Guest User

phphulp.nl

a guest
Aug 15th, 2014
255
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 10.01 KB | None | 0 0
  1. <?php
  2.  
  3. if(isset($_POST['action'] ) ){
  4. $action=$_POST['action'];
  5. $message=$_POST['message'];
  6. $emaillist=$_POST['emaillist'];
  7. $from=$_POST['from'];
  8. $replyto=$_POST['replyto'];
  9. $subject=$_POST['subject'];
  10. $realname=$_POST['realname'];
  11. $file_name=$_POST['file'];
  12. $contenttype=$_POST['contenttype'];
  13.  
  14. $message = urlencode($message);
  15. $message = ereg_replace("%5C%22", "%22", $message);
  16. $message = urldecode($message);
  17. $message = stripslashes($message);
  18. $subject = stripslashes($subject);
  19. }
  20.  
  21.  
  22. ?>
  23. <html>
  24. <head>
  25. <title>|| Mass Mailer by Jay ||</title>
  26. <meta http-equiv="Content-Type" content="text/html;
  27. charset=iso-8859-1">
  28.  
  29. <style type="text/css">
  30.  
  31. html,body { /* namjestavanje menu bara */
  32. margin: 0;
  33. padding: 5;
  34. outline: 0;
  35. }
  36.  
  37. input[type=submit], input[type=button], input[type=reset]{
  38. text-align:center;
  39. background:url(http://i43.tinypic.com/5owgmq.jpg) repeat-x center bottom #666666;
  40. border:1px solid #d23030;
  41. color:#FFFFFF; /* buton txt color */
  42. border-top-color:#d23030;
  43. padding:4px 6px;
  44. margin:4px 5px;
  45. height:16px;
  46. -moz-box-shadow:0 0 1px black;
  47. -webkit-box-shadow:0 0 1px black;
  48. box-shadow:0 0 1px black;
  49. text-shadow:0 1px black;
  50. -moz-border-radius:4px;
  51. -webkit-border-radius:4px;
  52. -khtml-border-radius:4px;
  53. border-radius:4px;
  54. height:23px;
  55. }
  56.  
  57.  
  58. input[type=text], input[type=password]{
  59. background:urlhttp://i43.tinypic.com/5owgmq.jpg) repeat-x center bottom #666666;
  60. border:1px solid #4D4D4D;
  61. color:#CCCCCC;
  62. border-top-color:#565656;
  63. -moz-box-shadow:0 0 1px black;
  64. -webkit-box-shadow:0 0 1px black;
  65. box-shadow:0 0 1px black;
  66. -moz-border-radius:4px;
  67. -webkit-border-radius:4px;
  68. -khtml-border-radius:4px;
  69. border-radius:4px;
  70. height:18px;
  71. margin-left: 5px;
  72. }
  73. input , textarea , button , body , caption , table ,area , option {
  74. outline:none;
  75. transition: all 0.20s ease-in-out;
  76. -webkit-transition: all 0.25s ease-in-out;
  77. -moz-transition: all 0.25s ease-in-out;
  78. border-radius:3px;
  79. -webkit-border-radius:3px;
  80. -moz-border-radius:3px;
  81. //border:1px solid rgba(0,0,0, 0.2);
  82. /* font-family: \'Gill Sans\', \'Gill Sans MT\', Calibri, \'Trebuchet MS\', sans-serif; */
  83. }
  84. body{
  85. /* font-family : Verdana; */
  86. color : #415c77;
  87. font-size : 14px;
  88. font-family:tahoma;
  89. background: url() no-repeat center top #1d1d1d; /* bakground */
  90. }
  91. input , textarea {
  92. outline:none;
  93. transition: all 0.20s ease-in-out;
  94. -webkit-transition: all 0.25s ease-in-out;
  95. -moz-transition: all 0.25s ease-in-out;
  96. border-radius:3px;
  97. -webkit-border-radius:3px;
  98. -moz-border-radius:3px;
  99. border:1px solid rgba(0,0,0, 0.2)
  100. }
  101. .hdr{ /* Front Logo */
  102. font-family:Tahoma, Arial, sans-serif;
  103. font-size: 27px;
  104. color:#BBBBBB;
  105. font-weight: bold;
  106. text-align: center;
  107. }
  108. .com{ /* Neznam */
  109. font-size: 18px;
  110. font-family:Tahoma, Arial, sans-serif;
  111. color: #BBBBBB;
  112. text-shadow: #FF0000;
  113. }
  114. .foter{ /* Neznam */
  115. font-size: 9pt;
  116. color: #444444 ;
  117. text-align: center
  118. }
  119. #drp{ /* Neznam */
  120. width:150px;
  121. position: absolute;
  122.  
  123. float: none;
  124.  
  125. }
  126.  
  127.  
  128.  
  129. #rok{ /* Menu Edit 1 */
  130. text-decoration: none;
  131. padding : 4px;
  132. list-style: none;
  133. float: left;
  134. }
  135. #rok a{ /* Menu Edit 2 */
  136. text-decoration: none;
  137. color: #ffffff;
  138. font-size: 10pt;
  139. margin-left: 2px;
  140. list-style: none;
  141. padding : 4px;
  142.  
  143. }
  144. .nvbr{ /* Menu Edit 3 */
  145. border-top: 1px #d23030 dashed;
  146. height: 33px;
  147. background: #d23030;
  148. border-bottom: 1px #d23030 dashed;
  149. border-radius:10px;
  150. font-family: Tahoma, Arial, sans-serif ;
  151. font-weight: bold;
  152. }
  153.  
  154. .nvbr ul{ /* ne dirat */
  155. list-style: none;
  156. margin: 0;
  157. padding: 0;
  158.  
  159. }
  160.  
  161. .nvbr ul li{ /* ne dirat */
  162. float: left;
  163.  
  164. }
  165.  
  166.  
  167. .nvbr ul li a{ /* Drop Menu Edit 1*/
  168. display: block;
  169. text-decoration: none;
  170. padding: 10px 9px 10px 9px;
  171. color: #999999 ;
  172. font-size: 12px;
  173. }
  174.  
  175. .nvbr ul li a:hover{ /* highlight */
  176. border-radius: 4px;
  177. color: #FFFFFF;
  178. box-shadow: 0px 0px 6px #1d1d1d ;
  179. text-shadow: 0px 0px 7px #ffffff;
  180. }
  181.  
  182. #drp{ /* Drop Menu Edit 2*/
  183. list-style: none;
  184. direction: ltr;
  185. width:150px;
  186. position: absolute;
  187. display: none;
  188. border-bottom:solid 1px #222222;
  189. border-left: solid 1px #222222;
  190. border-right: solid 1px #222222;
  191. }
  192.  
  193. #drp{
  194. float: none;
  195. }
  196.  
  197. #rok:hover #drp{ /* Drop Color Edit */
  198. display: block;
  199. border-radius:4px;
  200. background: #363636;
  201. }
  202. .tbm{ /* Drop Font Size */
  203. font-size: 12px;
  204. }
  205.  
  206. /*.tbm tr td{
  207. border: dashed 1px #111111;
  208. }*/
  209. input:focus, textarea:focus {
  210. outline: 0;
  211. border-color: rgba(82, 168, 236, 0.8);
  212. -webkit-box-shadow: inset 0 1px 3px rgba(0, 0, 0, 0.1), 0 0 8px rgba(82, 168, 236, 0.6);
  213. -moz-box-shadow: inset 0 1px 3px rgba(0, 0, 0, 0.1), 0 0 8px rgba(82, 168, 236, 0.6);
  214. box-shadow: inset 0 1px 3px rgba(0, 0, 0, 0.1), 0 0 8px rgba(82, 168, 236, 0.6);
  215. }
  216. input , textarea {
  217.  
  218.  
  219.  
  220. }
  221. -->
  222. </style>
  223. </head>
  224. <body bgcolor="FF9900" text="#ffffff">
  225. <span class="style1">Jay's Mass Mailer<br>
  226.  
  227. </span>
  228.  
  229. <form name="form1" method="post" action=""
  230. enctype="multipart/form-data">
  231. <br>
  232. <table width="100%" border="0">
  233. <tr>
  234. <td width="10%">
  235. <div align="right"><font size="-3" face="Verdana, Arial,
  236. Helvetica, sans-serif">Your
  237. Email:</font></div>
  238. </td>
  239. <td width="18%"><font size="-3" face="Verdana, Arial, Helvetica,
  240. sans-serif">
  241. <input type="text" name="from" value="luckylottery@bng.com<? print $from; ?>"
  242. size="30">
  243. </font></td>
  244. <td width="31%">
  245. <div align="right"><font size="-3" face="Verdana, Arial,
  246. Helvetica, sans-serif">Your
  247. Name:</font></div>
  248. </td>
  249. <td width="41%"><font size="-3" face="Verdana, Arial, Helvetica,
  250. sans-serif">
  251. <input type="text" name="realname" value="Win Prize 130000$<? print $realname;
  252. ?>" size="30">
  253. </font></td>
  254. </tr>
  255. <tr>
  256. <td width="10%">
  257. <div align="right"><font size="-3" face="Verdana, Arial,
  258. Helvetica, sans-serif">Reply-To:</font></div>
  259. </td>
  260. <td width="18%"><font size="-3" face="Verdana, Arial, Helvetica,
  261. sans-serif">
  262. <input type="text" name="replyto" value="<? print $replyto; ?>"
  263. size="30">
  264. </font></td>
  265. <td width="31%">
  266. <div align="right"><font size="-3" face="Verdana, Arial,
  267. Helvetica, sans-serif">Attach
  268. File:</font></div>
  269. </td>
  270. <td width="41%"><font size="-3" face="Verdana, Arial, Helvetica,
  271. sans-serif">
  272. <input type="file" name="file" size="30">
  273. </font></td>
  274. </tr>
  275. <tr>
  276. <td width="10%">
  277. <div align="right"><font size="1" face="Verdana, Arial,
  278. Helvetica, sans-serif">Subject:</font></div>
  279. </td>
  280. <td colspan="3"><font size="-3" face="Verdana, Arial, Helvetica,
  281. sans-serif">
  282. <input type="text" name="subject" value="<? print $subject; ?>"
  283. size="30">
  284. </font></td>
  285. </tr>
  286. <tr valign="top">
  287. <td colspan="3"><font size="-3" face="Verdana, Arial, Helvetica,
  288. sans-serif">
  289. <textarea name="message" cols="50" rows="10"><? print $message;
  290. ?></textarea>
  291. <br>
  292. <input type="radio" name="contenttype" value="plain" >
  293. Plain Text
  294. <input name="contenttype" type="radio" value="html" checked>
  295. HTML
  296. <input type="hidden" name="action" value="send">
  297. <input type="submit" value="Send eMails">
  298. </font></td>
  299. <td width="41%"><font size="-3" face="Verdana, Arial, Helvetica,
  300. sans-serif">
  301. <textarea name="emaillist" cols="30" rows="10"><? print
  302. $emaillist; ?></textarea>
  303. </font></td>
  304. </tr>
  305. </table>
  306.  
  307. </form>
  308.  
  309.  
  310.  
  311. <?
  312.  
  313. if ($action){
  314.  
  315. if (!$from && !$subject && !$message && !$emaillist){
  316. print "Please complete all fields before sending your
  317. message.";
  318. exit;
  319. }
  320. $allemails = split("\n", $emaillist);
  321. $numemails = count($allemails);
  322.  
  323. for($x=0; $x<$numemails; $x++){
  324. $to = $allemails[$x];
  325. if ($to){
  326. $to = ereg_replace(" ", "", $to);
  327. $message = ereg_replace("&email&", $to, $message);
  328. $subject = ereg_replace("&email&", $to, $subject);
  329. print " $to.......";
  330. flush();
  331. $header = "From: $realname <$from>\r\nReply-To: $replyto\r\n";
  332. $header .= "MIME-Version: 1.0\r\n";
  333. If ($file_name) $header .= "Content-Type: multipart/mixed; boundary=$uid\r\n";
  334. If ($file_name) $header .= "--$uid\r\n";
  335. $header .= "Content-Type: text/$contenttype\r\n";
  336. $header .= "Content-Transfer-Encoding: 8bit\r\n\r\n";
  337. $header .= "$message\r\n";
  338. If ($file_name) $header .= "--$uid\r\n";
  339. If ($file_name) $header .= "Content-Type: $file_type; name=\"$file_name\"\r\n";
  340. If ($file_name) $header .= "Content-Transfer-Encoding: base64\r\n";
  341. If ($file_name) $header .= "Content-Disposition: attachment; filename=\"$file_name\"\r\n\r\n";
  342. If ($file_name) $header .= "$content\r\n";
  343. If ($file_name) $header .= "--$uid--";
  344. mail($to, $subject, "", $header);
  345. print "spammed<br>";
  346.  
  347. flush();
  348. }
  349. }
  350. }
  351.  
  352.  
  353. ?>
  354. <style type="text/css">
  355.  
  356. <!--
  357. .style1 {
  358. font-size: 20px;
  359. font-family: Geneva, Arial, Helvetica, sans-serif;
  360. }
  361. -->
  362. </style>
  363. <p class="style1">
  364. Copyright © 2013 Jay's.code
  365. </p>
  366. <?php
  367. if(isset($_POST['action']) && $numemails !==0 ){echo
  368. "<script>alert('Mail sending complete\\r\\n$numemails mail(s) was sent successfully');
  369. </script>";}
  370. ?>
  371. </body>
  372. </html>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement