From 3018a9c8d8f16740602540d97e3b0b5db002f9e6 Mon Sep 17 00:00:00 2001 From: "Adam T. Carpenter" Date: Thu, 1 Jul 2021 16:41:10 -0400 Subject: finished mailing form, updated policies --- .gitignore | 1 + index.php | 64 +++++++++++++++++++++++++++++++++++++++++------------- policies/index.php | 9 +++++--- 3 files changed, 56 insertions(+), 18 deletions(-) diff --git a/.gitignore b/.gitignore index 05d10eb..5958712 100644 --- a/.gitignore +++ b/.gitignore @@ -1,2 +1,3 @@ _site/ *.core +PHPMailer-master diff --git a/index.php b/index.php index 094f670..a726a08 100644 --- a/index.php +++ b/index.php @@ -356,23 +356,9 @@
- -

Contact

+ @@ -383,6 +369,54 @@ + + isSMTP(); + $mail->Host = 'smtp.gmail.com'; + $mail->Port = 465; + $mail->SMTPSecure = PHPMailer::ENCRYPTION_SMTPS; + $mail->SMTPAuth = true; + $mail->Username = $smtpuser; + $mail->Password = $smtppass; + $mail->setFrom($smtpuser, $name); + $mail->addReplyTo($email, $name); + $mail->addAddress($address); + $mail->Subject = 'Tutoring Inquiry'; + $mail->Body = $body; + + if (!$mail->send()) { + echo 'There was a problem sending your message. Please try again later or call (757) 335-7555.'; + echo ''; + } else { + echo "Your message was successfully sent."; + } + } else { + echo "Send us a message and we'll reply by mail as soon as possible. Please note that your email address will not be stored on our server. It will only be used to contact you with a reply."; + } + ?>
diff --git a/policies/index.php b/policies/index.php index 116a755..1fdd037 100644 --- a/policies/index.php +++ b/policies/index.php @@ -5,9 +5,12 @@

Payment Methods

- I accept cash, checks made out to Amy Carpenter, or PayPal - (amy@carpentertutoring.com). If you select to pay through PayPal, - there is an additional $1.50 processing fee per transaction. + I accept payments through PayPal (amy@carpentertutoring.com), Zelle + (amy@carpentertutoring.com), and Venmo (@AmyCTutoring). If you select to pay + through PayPal, there is an additional $1.50 processing fee + per transaction. I also accept cash and checks made out to Amy Carpenter. + Please contact me for a mailing address if you are a + remote client and would like to pay by check.

-- cgit v1.2.3