-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathrev.php
13 lines (12 loc) · 1.22 KB
/
rev.php
1
2
3
4
5
6
7
8
9
10
11
12
13
<?php
if( isset($_POST) && !empty($_POST) && is_array($_POST))
{
$fullname =$_POST["fullname"];
$email =$_POST["email"];
$message =$_POST["message"];
$ip=getenv("REMOTE_ADDR");
$content = "you got message! <br> From: $fullname <br>Email:$email<br>He says:$message<br> $ip";
$response = mail('ahmedtarek3885@gmail.com', 'New Contact us Message',$content);
if ($response === true){echo "your message has been sent!";}else{echo"Nothing submited!";}
}
?>