-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathemail.php
26 lines (20 loc) · 928 Bytes
/
email.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
<?php
$to = "faeriemattins73191817@gmail.com";
$subject = "This is an automated email regarding the course registration";
$message = "Respected Sir. This Email is regarding the problems I have for the course registration. Kindly look into what I can do for the following semester.Thanking you ";
$header = "From:faeriemattins73191817@gmail.com \r\n";
$header .= "Cc:faeriemattins.r2019@vitstudent.ac.in \r\n";
$retval = mail ($to,$subject,$message,$header);
if( $retval == true ) {
echo "<script>alert('Email sent successfully!')</script>";
}else {
echo "<script>alert('Email could not be sent.')</script>";
}
echo '<script type="text/JavaScript">
function pageRedirect()
{
window.location.replace("iwp_home.php");
}
pageRedirect();
</script>';
?>