Advertisement
Guest User

Untitled

a guest
Aug 4th, 2017
549
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
PHP 0.71 KB | None | 0 0
  1. <?php
  2. /*
  3.  * CONFIGURATION
  4.  */
  5. $host = "SMTP HOST";
  6. $username = "SMTP USERNAME";
  7. $password = "SMTP PASSWORD";
  8. $to = "RECIPIENT OF EMAIL";
  9.  
  10.  /*
  11.   *
  12.   *
  13.   *
  14.   *
  15.   *
  16.   *
  17.   *
  18.   *
  19.   *
  20.   */
  21.  
  22. if(empty($_GET)){
  23.     echo'<form method="post" action="whitelist.php?action=send">';
  24.     echo'<input name="username" id="username">';
  25.     echo' <input type="submit" value="Submit">';
  26.     echo'</form>';
  27. }
  28. elseif($_GET['action']=='send'){
  29.     error_reporting(0);
  30.  require_once "Mail.php";
  31.  
  32.  $from = "Minecraft NZ <admin@minecraft.co.nz>";
  33.  $subject = "Whitelist Application";
  34.  $user = $_POST['username'];
  35.  $body = "The following user has applied to be whitelisted.\n".$user;
  36.  
  37.  mail($to, $subject, $body);
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement