summaryrefslogtreecommitdiff
path: root/index.php
diff options
context:
space:
mode:
authorAdam T. Carpenter <atc@53hor.net>2022-02-08 20:44:57 -0500
committerAdam T. Carpenter <atc@53hor.net>2022-02-08 20:44:57 -0500
commitd2a96e757f7f4bae9aa2dbf5384d386a9aa7998a (patch)
tree2c9b878e45faca18f414431160de061f814da372 /index.php
parent5188d34aa691d6a6f7c4a7e79cff7229dad1bf3e (diff)
downloadcarpentertutoring-d2a96e757f7f4bae9aa2dbf5384d386a9aa7998a.tar.xz
carpentertutoring-d2a96e757f7f4bae9aa2dbf5384d386a9aa7998a.zip
fix: strip honeypot and add logging for mailer errors
Diffstat (limited to 'index.php')
-rw-r--r--index.php3
1 files changed, 1 insertions, 2 deletions
diff --git a/index.php b/index.php
index cdf77fa..b9a58b1 100644
--- a/index.php
+++ b/index.php
@@ -366,8 +366,6 @@
<label for="email">Email Address</label>
<input name="email" type="email" id="email" placeholder="jdoe85@aol.com" required />
- <input class="honeypot" name="content" type="text" />
-
<label for="body">Question/Comment</label>
<textarea name="body" id="body" placeholder="Briefly describe your inquiry, including any services or areas of study you're interested in." required></textarea>
@@ -413,6 +411,7 @@
if (!$mail->send()) {
echo 'There was a problem sending your message. Please try again later or send mail to <a href="mailto:amy@carpentertutoring.com">Amy@CarpenterTutoring.com</a>.';
echo '<!--Send error: ' . $mail->ErrorInfo . '-->';
+ error_log($mail->ErrorInfo);
} else {
echo "Your message was successfully sent.";
}