WordPress.org

Ready to get started?Download WordPress

Forums

Contact Form 7
Error output to debug problems (3 posts)

  1. henningsprang
    Member
    Posted 2 years ago #

    Hi,

    In the FAQ it's written that I should contact my administrator when I keep getting the error message with the red border.

    I happen to be that admin myself, but I need some error message to know where I can start debugging. Currently the contact form does not give any information about what exactly is the problem it has when sending Email.
    There is not output in the webserver's error log, where I'd usually expect some information on what exactly goes wrong.

    WordPress itself can send email, and by running "mail somename@mydomain.com" I can send mail on the console without error.
    Does contact form try to send mail via SMTP itself, if so, where do I have to set a server?

    Thanks in advance for any hints,
    Henning

    http://wordpress.org/extend/plugins/contact-form-7/

  2. henningsprang
    Member
    Posted 2 years ago #

    After searching further, testing sending mail directly with the php mail command, which worked well, I finally found the Problem and the solution:

    The Form was not configured to include the Text input into the the mail, so the message body was empty, and this seems not to work.

    While it's somehow dumb when users like my try sending empty mails, a system that refuses to send such an empty mail should also tell the user that it does so and why, so debugging is easier. Any action that leads to an error should result in an error message in the webserver's log file.

  3. henningsprang
    Member
    Posted 2 years ago #

    BTW: I'd be happy to provide a patch warning users that empty mails cannot be sent, but I'm not sure where and how it's best implemented.

Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic