peterisgb88

email help

May 1st, 2012
114
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.98 KB | None | 0 0
  1. <?php
  2. require "globals.php";
  3. global $c;
  4. print "<html>
  5. <head>
  6. <title>Infamous Wars</title>
  7. <style>
  8. body { font-family:Verdana;font-size:8pt;color: black;background: #C3C3C3; }
  9. .details { border: 2px dashed red; background: #F88;width:50%;height=120; }
  10. .details table,tr,td { font-size:10pt;border: 1px solid white; }
  11. .logo img { border: none; }
  12. a { text-decoration: none; }
  13. </style>
  14. </head>
  15. <body><center>";
  16. $tt=mysql_query("SELECT * FROM users",$c) or die(mysql_error());
  17. while($gh=mysql_fetch_array($tt))
  18. {
  19. $to = $gh['email'];
  20. $subject = "Infamous Wars";
  21. $headers = "From: Infamous Wars Staff";
  22. $body = "
  23.  
  24. <center><img src=http://www.infamous-wars.com/images/title.png></center>
  25. <br/>
  26. <br/>
  27. Hello {$gh['username']}!
  28. Test
  29. <br/><br/><br/>
  30. Please Do NOT Reply to this E-mail<br/>
  31. If you Want to Reply Please Login via <a href=http://www.infamous-wars.com>HERE</a><br/>
  32.  
  33.  
  34.  
  35.  
  36. ";
  37. mail($to, $subject, $body, $headers);
  38. print "Email sent to {$gh['username']}!<br />";
  39. }
  40. ?>
Advertisement
Add Comment
Please, Sign In to add comment