-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathemailsend.php
More file actions
26 lines (23 loc) · 771 Bytes
/
Copy pathemailsend.php
File metadata and controls
26 lines (23 loc) · 771 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
<?php
if(isset($_POST['submit'])){
$name_student = $_POST['stud_name'];
$name_parent = $_POST['par_name'];
$email_student = $_POST['stud_email'];
$email_parent = $_POST['par_email'];
$gender_student = $_POST['stud_gender'];
$grade_student = $_POST['stud_grade'];
$phone_parent = $_POST['par_phone'];
$date_parent = $_POST['par_dates'];
$frommail = 'adwingp@gmail.com';
$headers = "From : ".$frommail;
$txt = "testing email";
$to = 'adwin@acube.co';
$retval = mail ($to,$subject,$message,$header);
if($retval == true){
echo "success";
}else{
echo "fail";
}
exit;
}
?>