From 8163ee8ff81a9ebb8fdee33bb3305aa0af4a0fd9 Mon Sep 17 00:00:00 2001 From: "Adam T. Carpenter" Date: Tue, 8 Feb 2022 21:27:51 -0500 Subject: fix: system installed php mailer --- index.php | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/index.php b/index.php index b9a58b1..5865961 100644 --- a/index.php +++ b/index.php @@ -375,9 +375,9 @@ use PHPMailer\PHPMailer\PHPMailer; - require('PHPMailer-master/src/PHPMailer.php'); - require('PHPMailer-master/src/SMTP.php'); - require('PHPMailer-master/src/Exception.php'); + require('/usr/local/share/phpmailer/PHPMailer.php'); + require('/usr/local/share/phpmailer/SMTP.php'); + require('/usr/local/share/phpmailer/Exception.php'); // handle form submission if (empty($_POST['content']) && isset($_POST['name'], $_POST['email'], $_POST['body'])) { @@ -390,9 +390,9 @@ $email = $_POST['email']; - $smtpuser = file_get_contents('/var/carpentertutoring/smtpuser'); - $smtppass = file_get_contents('/var/carpentertutoring/smtppass'); - $address = file_get_contents('/var/carpentertutoring/address'); + $smtpuser = file_get_contents('/var/carpentertutoring/config/smtpuser'); + $smtppass = file_get_contents('/var/carpentertutoring/config/smtppass'); + $address = file_get_contents('/var/carpentertutoring/config/address'); $mail = new PHPMailer(); $mail->isSMTP(); -- cgit v1.2.3