-
Notifications
You must be signed in to change notification settings - Fork 14
/
sendmail.php
67 lines (50 loc) · 1.91 KB
/
sendmail.php
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
<?php require($_SERVER['DOCUMENT_ROOT'] . '/email-validator.php'); ?>
<?php
/*
$recipient = $_POST['recipient'];
$email = $_POST['email'];
$subject = $_POST['subject'];
$text = trim($_POST['comment']);
$text .= "\r\n--\r\nSubmitted via form from mamedev.org";
$targets = array(
'legal' => '[email protected]',
'team' => '[email protected]',
'webmaster' => '[email protected]'
);
$message = "";
if (array_key_exists($recipient, $targets))
{
$validator = new EmailAddressValidator;
if ($validator->check_email_address($email))
mail($targets[$recipient], $subject, $text, array("From" => "[email protected]", "Reply-To" => $email)) or die ("Error mailing");
}
*/
?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" lang="en">
<head>
<META HTTP-EQUIV="Refresh" CONTENT="1; URL=sent.html">
<title>MAME | Sending mail</title>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1"/>
<meta name="description" content="" />
<meta name="keywords" content="" />
<link rel="stylesheet" href="/_include/css/core.css" type="text/css" media="screen" />
<!--[if IE 6]><link rel="stylesheet" href="/_include/css/ie6.css"" type="text/css" media="screen" /><![endif]-->
<link href="/_include/img/favicon.ico" rel="shortcut icon"/>
</head>
<body>
<?php /*require($_SERVER['DOCUMENT_ROOT'] . '/_include/html/header.html'); FIXME this has a doctype/head in it */ ?>
<!-- Page Content -->
<div class="container">
<?php /*
<h1 class="page-header"><center>Sending Email</center></h1>
<h1><center>Sending Email</center></h1>
<div class="rowlast">
<p>
Sending your mail. If nothing happens, please click <a href="sent.html">HERE</a>
</p>
</div>
*/ ?>
</div>
<!-- /.container -->
<?php require($_SERVER['DOCUMENT_ROOT'] . '/_include/html/footer.html'); ?>