minetest-modinstaller-web/send.php

27 lines
638 B
PHP
Raw Normal View History

2017-01-31 11:27:24 -08:00
<html>
<head>
<?php
2017-02-02 05:04:55 -08:00
error_reporting(-1);
ini_set('display_errors', 'On');
set_error_handler("var_dump");
2017-02-02 13:28:06 -08:00
$from = 'devswithouthobbies@gmail.com';
2017-02-02 05:04:55 -08:00
2017-02-02 13:28:06 -08:00
$to = 'devswithouthobbies@gmail.com';
2017-02-02 05:04:55 -08:00
$subject = $_GET['subject'];
$message = str_replace('|', "\r\n", $_GET['message']);
$headers = 'From:' . $from;
if(mail($to, $subject, $message, $headers))
2017-02-02 13:28:06 -08:00
echo "<meta http-equiv='refresh' content='0; URL=index.html?success=true'>";
2017-02-02 05:04:55 -08:00
else
2017-02-02 13:28:06 -08:00
echo "<meta http-equiv='refresh' content='0; URL=index.html?success=false'>";
2017-02-02 05:04:55 -08:00
2017-01-31 11:27:24 -08:00
?>
</head>
</html>