diff options
author | Adam T. Carpenter <atc@53hor.net> | 2022-02-08 21:27:51 -0500 |
---|---|---|
committer | Adam T. Carpenter <atc@53hor.net> | 2022-02-08 21:27:51 -0500 |
commit | 8163ee8ff81a9ebb8fdee33bb3305aa0af4a0fd9 (patch) | |
tree | 604c9330bd4ff0c46235887fc698196bfc3f9666 /index.php | |
parent | d2a96e757f7f4bae9aa2dbf5384d386a9aa7998a (diff) | |
download | carpentertutoring-8163ee8ff81a9ebb8fdee33bb3305aa0af4a0fd9.tar.xz carpentertutoring-8163ee8ff81a9ebb8fdee33bb3305aa0af4a0fd9.zip |
fix: system installed php mailer
Diffstat (limited to 'index.php')
-rw-r--r-- | index.php | 12 |
1 files changed, 6 insertions, 6 deletions
@@ -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(); |