How to check contact us form sending mails or not

To check if a contact us form is sending emails or not, you can follow these steps:

Method 1: Check the Form's Submission Response

  1. Fill out the contact us form and submit it.
  2. Check the form's submission response, which is usually displayed on the same page or in a pop-up window. If the response indicates that the form was submitted successfully, it's likely that the email was sent.
  3. Look for any error messages or notifications that may indicate if the email was not sent.

Method 2: Check the Server Logs

  1. Access your website's server logs, which are usually located in the root directory of your website or in a subdirectory like logs.
  2. Search for the contact us form's submission in the logs. You can use a search engine or a log analysis tool to find the relevant entries.
  3. Check the log entries for any errors or warnings related to the email sending process.

Method 3: Check the Email Server Logs

  1. Access your email server's logs, which are usually located in the email server's configuration directory or in a subdirectory like logs.
  2. Search for the contact us form's submission in the logs. You can use a search engine or a log analysis tool to find the relevant entries.
  3. Check the log entries for any errors or warnings related to the email sending process.

Method 4: Use a Debugging Tool

  1. Use a debugging tool like Chrome DevTools or Firefox Developer Edition to inspect the form's submission process.
  2. Set a breakpoint or use the debugger to pause the execution of the code when the form is submitted.
  3. Inspect the variables and objects involved in the email sending process to see if any errors occur.

Method 5: Check the Email Client

  1. Check your email client's spam or junk folder to see if the email was sent to the wrong folder.
  2. Check your email client's sent folder to see if the email was sent successfully.

Common Issues to Check

  1. Email address format: Ensure that the email address is correctly formatted and not blocked by your email provider.
  2. Email server configuration: Verify that your email server is configured correctly and not blocking the email sending process.
  3. Form validation: Check that the form is properly validated and not rejecting the submission due to invalid input.
  4. Email sending code: Review the code used to send the email and ensure that it is correct and not causing any errors.

By following these methods, you should be able to determine if your contact us form is sending emails or not.