summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAdam T. Carpenter <atc@53hor.net>2022-02-08 21:27:51 -0500
committerAdam T. Carpenter <atc@53hor.net>2022-02-08 21:27:51 -0500
commit8163ee8ff81a9ebb8fdee33bb3305aa0af4a0fd9 (patch)
tree604c9330bd4ff0c46235887fc698196bfc3f9666
parentd2a96e757f7f4bae9aa2dbf5384d386a9aa7998a (diff)
downloadcarpentertutoring-8163ee8ff81a9ebb8fdee33bb3305aa0af4a0fd9.tar.xz
carpentertutoring-8163ee8ff81a9ebb8fdee33bb3305aa0af4a0fd9.zip
fix: system installed php mailer
-rw-r--r--index.php12
1 files 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();