[go: up one dir, main page]

Menu

[72b583]: / www / mail.php  Maximize  Restore  History

Download this file

30 lines (28 with data), 909 Bytes

 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
<?php
include("header.php");
$mailto = "steinm@pb.steinmann.cx";
$extraheader = "from: pslib-dev@codigolivre.org.br\nbcc:steinm@steinmann.cx";
if(!empty($text) && !empty($subject)) {
?>
<h2>Thank you ...</h2>
<p>for taking the time to comment on pslib. If you have a question
we will try to contact you as soon as possible.
<?php
if($email)
$extraheader .= "\nReply-To: ".$email.", pslib-dev@codigolivre.org.br";
$mailtext = "This mail was send through the web form of pslib's home page.\n";
if(!empty($email)) {
$mailtext .= "Replies to this mail will be send to the pslib mailing list\nand the submitter of this comment.\n\n";
}
$mailtext .= stripslashes($text);
mail($mailto, "[pslib web form] ".stripslashes($subject), $mailtext, $extraheader);
} else {
?>
<h2>Error</h2>
<p>You must at least type in a subject and your comment.
<?php
}
?>
<?php
include("footer.php");
?>