Replies: 1 comment 2 replies
-
I made some changes to the code and it is now behaving as I expected. |
Beta Was this translation helpful? Give feedback.
2 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
I'm very new to this I'm afraid. Please forgive my ignorance.
I've managed to hack together my code for PHPMailer from various sources online and it is working. I'm not using Composer. It works and emails are being sent. Unfortunately, I'm having a minor issue with catching exceptions. I have a simple contact form with three fields. The success message works. I would like an error message to occur if any of the fields are left blank. At the moment the error message only occurs if the message field is empty. I would really like the error message to be triggered when any of the fields are empty and the submit button is clicked.
Here is my PHP code (I've removed the mailbox credentials):
`<?php
?>`
I would be grateful for any assistance or guidance.
Thanks
John
Beta Was this translation helpful? Give feedback.
All reactions