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
68
69
70
71
72
73
74
75
76
77
78
79
|
-- <?php
$name = $_POST['name'];
$tszam = $_POST['tszam'];
$mail = $_POST['mail'];
$zipcode = $_POST['zipcode'];
$city = $_POST['city'];
$address= $_POST['address'];
$message = $_POST['message'];
$elkuld = $_POST['elkuld'];
if(isset($_POST['elkuld']))
{
// ide írd hogy ki kapja meg a mailt
$to = 'ide kellene a megrendelő email címe a formból($mail)@gmail.com' . ', '; // ez lenne a megrendelő email címe amit ki kellene nyernem
// Tárgy
$subject = 'Apartman rendelés.';
$thankyou = "ajanlat.html";
// sikeres küldés után ez fog megjelenni a küldőnek
// üzenet
$message = '
';
// html fejléc
$headers .= "Bcc: ".$emailList."rn"; // ide kellene az én címem ahova a megrendelés befut
$headers .= "From: info@ilona-apartman-v-.hurn" .
"X-Mailer: php";
$headers .= "MIME-Version: 1.0rn";
$headers .= "Content-Type: text/html; charset=utf-8rn";
ini_set('sendmail_from', 'info@ilona-apartman-v.hu');
// mail küldés
mail($to, $subject, $message, $headers);
?>
<html lang="hu"> <!--<![endif]-->
<head>
</head>
<body>
</body>
</html>
<!-- === END FOOTER === -->
<?php
}else{
?>
<html>
<head>
<style>
.div{
position: absolute;
left: 350px;
top: 200px;
}
</style>
</head>
<body>
<div class="div">
<font size="5">Nem töltötted ki az űrlapot!</font><br />
<a href="page-foglalas.html">Vissza az űrlaphoz..</a>
</div>
</body>
</html>
<?php
}
?>
|