-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathcontact3.php
More file actions
87 lines (63 loc) · 3 KB
/
contact3.php
File metadata and controls
87 lines (63 loc) · 3 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
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
<?php
$strAbsPath = "/home/paulthetutor/paulthetutors.com";
include($strAbsPath . "/includes/pttec_includes.phtml");
MySQL_PaulTheTutor_Connect();
reqToVars();
$strHeader = "From: $name<$email>";
$todays_date = date('Y-m-d');
$IQStr = "insert into PT_Emails (from_name, email_address, subject, body, date, phone) values ('$name', '$email', '$subject', '$message', '$todays_date', '$phone')";
if(!(mysql_query($IQStr))){
echo "Something may have gone wrong with the email. To be safe, you might want to hit the back button, and send the email again. Alternately, you can give Paul a call at (510) 730-0390.";
die();
}
$message = stripslashes($message);
$pttmess = "From the website of Paul the Tutor's:\n\n" . $message . "\n\n Phone: $phone";
$sendermess = "Please do not reply to this email as noreply@paulthetutors.com is not monitored. The following message has been received, and we will reply within 48 hours.\nBe sure to put the domain 'paulthetutors.com' in your friends list.\n\n" . $message;
//$strHeader = "From: website@paulthetutors.com.\r\nReply-to: $email";
$header = "From: info@paulthetutors.com \r\n";
$header .= "Reply-To: $email\r\n";
$header .= "MIME-Version: 1.0\r\n";
$header .= "Content-Type: text/html; charset=ISO-8859-1\r\n";
$famparam = "-fnoreply@paulthetutors.com";
$paulparam = "-f$email";
// ptts2_mail("info@paulthetutors.com", $subject, $pttmess, "From: $name <$email>");
ptts2_mail("websitemail@paulthetutors.com", $subject, $pttmess, $header, $paulparam);
//ptts2_mail("paul@paulthetutor.com", $subject, $pttmess, "From: $name <$email>", $paulparam);
ptts2_mail($email, $subject, $sendermess, "From: noreply@paulthetutors.com", $famparam);
// $opts[from][name] = $name;
// $opts[from][email] = $email;
// ptts_mail("info@paulthetutors.com", $subject, $pttmess, $opts);
// $opts[from][email] = "noreply@paulthetutors.com";
// $opts[from][name] = "noreply@paulthetutors.com";
// ptts_mail($email, $subject, $sendermess, $opts);
// ptts2_mail($email_address,$subject,$message,$other_h=NULL,$other_p=NULL)
// mail("info@paulthetutor.com",$subject,$message,$strHeader,$addparameters);
put_ptts_header("Thanks for Contacting Paul the Tutors", $strAbsPath, "", "");
?>
<link href="includes/paulthetutors.css" rel="stylesheet" type="text/css">
<table width="500" border=0>
<tr bgcolor="#FFECC6">
<td height="25" valign="top" bgcolor="#FFFFFF"><span class="Head1">Thank You for Contacting
Paul The Tutor's </span></td>
</tr>
<tr>
<td height="70" valign="top" bgcolor="#FFFFFF"><div align="left">
<p>An email from
<?=$name;?>
at
<?=$email;?>
has been sent. <strong>Make sure this is the correct e-mail address</strong> </p>
<p>You should also receive a copy of the email. If you do not receive
a copy,please check your spam filter. You can always call us at
(510) 730-0390.</p>
<p>Thanks,</p>
<p>Paul the Tutor's </p>
</div></td>
</tr>
<tr>
<td> </td>
</tr>
</table>
<?
put_ptts_footer("");
?>