-
Notifications
You must be signed in to change notification settings - Fork 1
/
default.php
47 lines (40 loc) · 1.09 KB
/
default.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
<!DOCTYPE html>
<html>
<body>
<?php
if(isset($_POST['submit']))
{
sendmail();
}
function sendmail()
{
$to = "ramya.akula01@gmail.com";
$subject = "This is subject";
$message = "1." . $_POST['element_1'] . "\r\n" .
"2." . $_POST['element_2'] . "\r\n" .
"3." . $_POST['element_3'] . "\r\n" .
"4." . $_POST['element_4'] . "\r\n" .
"5." . $_POST['element_5'] . "\r\n" .
"6." . $_POST['element_6'] . "\r\n" .
"7." . $_POST['element_7'] . "\r\n" .
"8." . $_POST['element_8'] . "\r\n" .
"9." . $_POST['element_9'] . "\r\n" .
"10." . $_POST['element_10'] . "\r\n" .
"11." . $_POST['element_11'] . "\r\n" .
"12." . $_POST['element_12'] . "\r\n" .
"13." . $_POST['element_13'] . "\r\n" .
"14." . $_POST['element_14'] . "\r\n" .
"15." . $_POST['element_15'] . "\r\n" ;
$retval = mail ($to,$subject,$message,$header);
if( $retval == true )
{
echo "Message sent successfully...";
}
else
{
echo "Message could not be sent...";
}
}
?>
</body>
</html>