-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathsend-pr.php3
More file actions
58 lines (55 loc) · 1.76 KB
/
send-pr.php3
File metadata and controls
58 lines (55 loc) · 1.76 KB
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
<html>
<body>
<?php
$nl = chr(13) . chr(10);
$usr_download = "usr_download.csv";
if ($email == "" ||
$Category == "" ||
$Synopsis == "" ||
$Originator == "" ||
$Severity == "" ||
$Release == "" ||
$Description == "" ||
$Priority == ""
)
{
echo "Please fill out <B>all</B> mandatory fields.<p>";
echo "Return to problem report form";
echo "<form>";
echo "<input type='button' value ='OK' onClick=history.go(-1)>";
echo "</form>";
} else {
//$emailaddr = "wagner@elego.de";
$emailaddr = "bugs@elego.de";
$subject = "$Synopsis";
$msg =
">Submitter-Id: " . $SubmitterId . $nl .
">Originator: " . $Originator . $nl .
">Synopsis: " . $Synopsis . $nl .
">Confidential: " . $Confidential . $nl .
">Category: " . $Category . $nl .
">Severity: " . $Severity . $nl .
">Priority: " . $Priority . $nl .
">Class: " . $Class . $nl .
">Release: " . $Release . $nl .
">Environment: " . $nl . $Environment . $nl .
">Description: " . $nl . $Description . $nl .
">How-To-Repeat: " . $nl . $HowToRepeat . $nl .
">Fix: " . $nl . $Fix . $nl;
mail(
$emailaddr, $subject, $msg,
"From: " . $email . $nl .
"Cc: " . $cc . $nl
//"X-GNATS-Notify: " . $Notify . $nl
);
echo "Thank you for your problem report. It has been sent to ";
echo "$emailaddr.<br><br>";
echo "<a href=\"index.html\">back to index page</a>";
// echo "<br>";
// echo "<pre>";
// echo "$msg";
// echo "</pre>";
}
?>
</body>
</html>