-
Notifications
You must be signed in to change notification settings - Fork 129
/
mailme.php
53 lines (41 loc) · 1.26 KB
/
mailme.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
<?php
if($_POST && count($_POST))
{
include_once('GameEngine/config.php');
$strEmpfaenger = (ADMIN_EMAIL ? ADMIN_EMAIL : (PAYPAL_EMAIL ? PAYPAL_EMAIL : '[email protected]'));
$strFrom = "From: TravianiX Support <$strEmpfaenger>\n";
$strFrom .= "X-Sender: <$strEmpfaenger>\n";
$strFrom .= "X-Mailer: PHP\n";
$strFrom .= "X-Priority: 3\n";
$strFrom .= "Errors-To: <$strEmpfaenger>\n";
$strFrom .= "Return-Path: <$strEmpfaenger>\n";
$strFrom .= "Reply-To: " . $_POST['Emailadress'] . "\n";
$strFrom .= "Content-Type: text; charset=iso-8859-15\n";
$strSubject = "New Ticket supported";
$strReturnhtml = 'dorf1.php';
$strDelimiter = ":\t";
$strMailtext = "";
while(list($strName,$value) = each($_POST))
{
if(is_array($value))
{
foreach($value as $value_array)
{
$strMailtext .= $strName.$strDelimiter.$value_array."\n";
}
}
else
{
$strMailtext .= $strName.$strDelimiter.$value."\n";
}
}
if(get_magic_quotes_gpc())
{
$strMailtext = stripslashes($strMailtext);
}
mail($strEmpfaenger, $strSubject, $strMailtext, $strFrom)
or die("The mail could not be send. Something get wrong!");
header("Location: $strReturnhtml");
exit;
}
?>