Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <?php
- /*
- * CONFIGURATION
- */
- $host = "SMTP HOST";
- $username = "SMTP USERNAME";
- $password = "SMTP PASSWORD";
- $to = "RECIPIENT OF EMAIL";
- /*
- *
- *
- *
- *
- *
- *
- *
- *
- *
- */
- if(empty($_GET)){
- echo'<form method="post" action="whitelist.php?action=send">';
- echo'<input name="username" id="username">';
- echo' <input type="submit" value="Submit">';
- echo'</form>';
- }
- elseif($_GET['action']=='send'){
- error_reporting(0);
- require_once "Mail.php";
- $from = "Minecraft NZ <admin@minecraft.co.nz>";
- $subject = "Whitelist Application";
- $user = $_POST['username'];
- $body = "The following user has applied to be whitelisted.\n".$user;
- mail($to, $subject, $body);
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement