forked from iopietro/Travianz-Legacy
-
Notifications
You must be signed in to change notification settings - Fork 0
/
mailme.php
56 lines (42 loc) · 1.14 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
54
55
56
<?php
### start config ###
$strEmpfaenger = 'changeme@change.me';
$strFrom = "From: TravianiX Support <changeme@change.me>\n";
$strFrom .= "X-Sender: <changeme@change.me>\n";
$strFrom .= "X-Mailer: PHP\n";
$strFrom .= "X-Priority: 3\n";
$strFrom .= "Errors-To: <changeme@change.me>\n";
$strFrom .= "Return-Path: <changeme@change.me>\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";
### end of config ###
if($_POST)
{
$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;
}
?>