From 67d362b9976d99975f10da46ee900122576e2b3e Mon Sep 17 00:00:00 2001 From: "Adam T. Carpenter" Date: Sun, 9 Jun 2024 15:55:18 -0400 Subject: feat: replace contact form with direct email link --- index.php | 75 +-------------------------------------------------------------- 1 file changed, 1 insertion(+), 74 deletions(-) (limited to 'index.php') diff --git a/index.php b/index.php index b6f53fd..530544a 100644 --- a/index.php +++ b/index.php @@ -19,7 +19,7 @@ include('header.php');
- mailbox Send a message + mailboxAmy@CarpenterTutoring.com phone (757) 335-7555 @@ -359,79 +359,6 @@ include('header.php'); - -
-
-

Contact

- - - - - - - - - - - - - - - - - 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($email, $name); - $mail->addAddress($address); - $mail->addReplyTo($email); - $mail->Subject = "Tutoring Inquiry from $email $phone"; - $mail->Body = $body; - - if (!$mail->send()) { - echo 'There was a problem sending your message. Please try again later or send mail to Amy@CarpenterTutoring.com.'; - echo ''; - error_log($mail->ErrorInfo); - } else { - echo "Your message was successfully sent."; - } - } else { - echo 'Send us a message and we`ll reply by mail or phone as soon as possible. Please note that your personal data will not be stored on our system; it will only be used to contact you with a reply. You may also send mail directly to Amy@CarpenterTutoring.com.'; - } - ?> -
- -
-
-- cgit v1.2.3