-
Notifications
You must be signed in to change notification settings - Fork 1
/
mail.php
executable file
·37 lines (33 loc) · 875 Bytes
/
mail.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
<?php
$width = $_POST['width'];
$mail = $_POST['email'];
$naam = $_POST['naam'];
$bericht = $_POST['bericht'];
$bday = $_POST['bday'];
$subject = $_POST['ddl']." - Sent from www.themissingh.be/capitole/contact.html";
$sex = $_POST['sex'];
$to = "stef_christiaens@hotmail.com";
$message =" You received a mail from ".$mail;
$message .=".\r";
$message .=" Text of the message : ".$bericht;
$message .=".\r";
$message .="Bday of " .$naam;
$message .=" : ".$bday;
$message .="\r Sex: ".$sex;
require_once("captcha.php");
if($check){
if(mail($to, $subject, $message)){
echo "Mail successfully sent.";
}
}
elseif($width < 479){
if(mail($to, $subject, $message)){
echo "Mail successfully sent.";
}
else{
echo "There are some errors to send the mail, check your internet settings.";
}
}
else{
echo "There are some errors to send the mail, fill in the captcha.";
}