forked from LetSeeApp/LetSeeApp.github.io
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathcontact-send.php
More file actions
22 lines (18 loc) · 763 Bytes
/
contact-send.php
File metadata and controls
22 lines (18 loc) · 763 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
<?php
if(isset($_POST['InputMessage']) && $_POST['InputMessage']!='' ){
$to = 'bioniceyeglass@gmail.com';
$subject = '[letSee] Message recieved';
$etext = str_replace("\n.", "\n..",'Message recieved from ' . ($_POST['InputName1']!=''?$_POST['InputName1']:'[not provided]') . ', email: ' . ($_POST['InputEmail1']!=''?$_POST['InputEmail1']:'[not provided]') . ', message: ' . $_POST['InputMessage']);
$headers = 'From: user@letseeapp.com' . "\r\n" . 'Reply-To: info@letseeapp.com' . "\r\n" . 'X-Mailer: PHP/' . phpversion();
if(@mail( $to, $subject, $etext, $headers))
{
echo "Mail Sent Successfully";
}else{
echo "Mail Not Sent";
}
// mail( $to, $subject, $etext);
echo "Message theoretically sent";
}else{
echo "No valid parameters";
}
?>