-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathmail.php
More file actions
63 lines (39 loc) · 1.37 KB
/
mail.php
File metadata and controls
63 lines (39 loc) · 1.37 KB
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
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
<html>
<head><title>PHP Mail Sender</title></head>
<body>
<?php
/***
$email = $HTTP_POST_VARS['email'];
$subject = $HTTP_POST_VARS['subject'];
$message = $HTTP_POST_VARS['message'].'from: '.$email;
$Header = 'Content-type: text/html; charset=iso-8859-1' . "\r\n";
$Header .= 'From: info <info@eaglesalestires.com >' . "\r\n";
if(mail('seanwayland@gmail.com', $subject, $message, $Header))
echo "email sent";
else
echo "email sending fail";
**/
//$email = $HTTP_POST_VARS['email'];
//$subject = $HTTP_POST_VARS['subject'];
//$message = $HTTP_POST_VARS['message'].' : message from: '.$email;
$name = $_POST['name'];
$visitor_email = $_POST['email'];
$message = $_POST['message'];
$message = ' email from: '.$visitor_email.' name: '.$name.' message: '.$message;
$subject = "contact form";
//$message = "Validation info, hi there";
$Header = 'Content-type: text/html; charset=iso-8859-1' . "\r\n";
$Header .= 'From: info <info@eaglesalestires.com >' . "\r\n";
if(mail('questions@eaglesalestires.com', $subject, $message, $Header))
echo 'email sent '.' message: '.$message;
//echo $email.$subject.$message;
//echo $subject;
//echo $message;
//else
//echo "email sending fail";
/***
* https://stackoverflow.com/questions/10095456/phps-mail-function-doesnt-work-on-godaddy-dedicated-server
*/
?>
</body>
</html>