Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- ///mail.php
- /*
- <?php
- $destination = urldecode($_GET["d"]); // get the destination email address from the URL
- $subject = urldecode($_GET["s"]); // get the subject from the URL
- $message = urldecode($_GET["m"]); // get the message from the URL
- $sender = urldecode($_GET["f"]); // get the message from the URL
- $auth = $_GET["auth"]; // get the authentification from the URL
- $salt = "mysalt123"; // salt - ensure it matches the salt in Game Maker
- $verify = md5(mb_convert_encoding($message.$salt, "UTF-8" )); // verify server-side
- $headers = "From: " . $sender . "\r\n"; // set the sender address (you) as "From"
- $headers .= "Reply-To: ". $sender ."\r\n"; // append sender address to header for reply
- $headers .= "Content-Type: text/html; charset=ISO-8859-1\r\n"; // allow text and html in the email body
- // send email if the verification matches
- if ($verify == $auth) {
- mail($destination, $subject, $message, $headers );
- echo "1";
- }
- else{
- echo "0";
- }
- ?>*/
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement