If you are using the WordPress plugin Contact-Form-7 on a Webserver that is not configured as a mail server you will get an error.

By default the error is: Failed to send your message. Please try later or contact administrator by other way.

The only solution I have found is to install, on my Ubuntu Server(s), a sendmail provider (i.e. sendmail, exim, postfix, etc…). After which the error goes away.

Tagged with:
 

3 Responses to WordPress Contact-Form-7

  1. whoisjian says:

    Hi, I am having on trouble with receive emails from (latest)Contact Form 7 through WordPress 3.2.1 running a Ubuntu Server 10.04.3, and I did run the following installation:
    Postifx, squirrelmail, php5-imap, bsd-mailx…

    and there isn’t email send out from my wordpress setup.
    could you tell me what other things I should set up if I only want the Contact Form 7 to work.

    the setup instructions on Linux Mail Server is probably beyond what I need to get my site working right?

    Thanks

  2. whoisjian says:

    I am sorry, forgot to mention that on WordPress, the submit seemed to be successful with the following message:

    “Your message was sent successfully. Thanks.”

    But no email receive in my Mailbox.

    :)

  3. AndyB says:

    @whoisjian
    If you have installed and configured postfix try watching the mail log as you use the contact form:

    1. Login to your server (and open a shell session if graphical login) as root or sudo -s
    2. tail -f /var/log/mail.log (the file should be called this but it might not be)
    3. Try to send yourself an email from the contact form and you’ll see updates to the log file printed to your console window

    The log should give you enough information to start looking at the causes.

Leave a Reply