Contact Me

Contact Form 7 Not Working : Success Notification, NO email – FIXED

Contact Form 7 Not Working : Success Notification, NO email – FIXED
I use the super popular contact Form 7 plugin for wordpress. I run it on a few other sites I run with no issue but for some reason I was not getting any emails sent out on this site. When I try to email using the form , I get a success notification and no email gets sent out, which was really worrying because my visitors think they have successfully emailed me and I get no emails !!!

contact form 7 not sending message ?

Before we begin I want to make one thing very clear, the issue lies with my sever and not the plugin itself. The wordpress plugin is quite easy to install and when you fill the contact form fields and click on the send button you get a “Your message was sent successfully. Thanks.” which indicates a successful email being sent out but if you check your inbox you will find that the email is never there. It was not even caught up in the spam folder.

Your message was sent successfully. Thanks. Contact form 7 FAIL

Your message was sent successfully. Thanks. Contact form 7 FAIL

I believe Contact Form 7 uses the built in wordpress wp_mail function and there could be some issue on how its setup or perhaps your server will not allow call to that function which is quite similar to PHP’s mail function. But there should be a way around it right ? Sure there is.

Contact Form 7 Not Working ? Here is a fix

There is a wordpress plugin called WP Mail SMTP which tells the the wp_mail() function to use SMTP instead of php mail() and gives you a admin settings page to manage the settings. You can take a look at the developers page to learn more about it. Download install and activate it.

Now open up the settings page from Admin Sidebar >> Setings >> Email.

  • In the From Email field add your desired email id ( this is the from email id your visitors will see ).
  • Add your name or the Site name in the From Name field.
  • In the Mailer field select the first option Send all WordPress emails via SMTP.
  • For SMTP Options I use Google Apps ( if you use the same or gmail ) you can enter the same details , else add in your SMTP details
    1. SMTP Host : smtp.gmail.com
    2. SMTP Port : 465
    3. Encryption : Use SSL encryption.
    4. Authentication : Yes: Use SMTP authentication.
    5. Username : your username including @domain.com
    6. Password : your email password
WP Mail SMTP Configuration

WP Mail SMTP Configuration

You can test it out by using the Send a Test Email option or try to fill in the Contact Form 7 page and see if you receive an email. It resolved the issue for me. Let us know if it resolves your issue.

  • http://webloggerz.com/ Webloggerz

    not able to install this plugin.. receiving fatal error. .any suggestions?

    • http://www.bestwp7games.com/ Saijo George

      what version of wordpress are you on ? The plugin will not work with WordPress versions less than 2.7. You can also try the support forum here : http://wordpress.org/support/plugin/wp-mail-smtp

      • http://webloggerz.com/ Webloggerz

        my version is 3.5

        • http://www.bestwp7games.com/ Saijo George

          Well in that case its best to reach out to the developer via the support form link above.

  • Arun

    Thank you! It worked.

    • http://www.bestwp7games.com/ Saijo George

      I am glad it helped you out :)

  • Jas007

    The suggested changes in WP mail SMTP do not work for me. I have Windows 8, WP 3.5.1, WAMP 2.2E. I used port 465 (same as how I configured Outlook). The test provides this:
    public ‘ErrorInfo’ => string ‘The following From address failed: myname@gmail.com‘ (length=58)
    and a little below:
    ‘error’ => string ‘Called Mail() without being connected’ (length=37)
    I can connect to gmail with Firefox and from my configured Outlook with that address.
    The test also reveals :
    protected ‘smtp’ =>
    object(SMTP)[4456]
    public ‘SMTP_PORT’ => int 25Could that be my problem?

  • Jas007

    test message also says ”
    private ‘error’ =>
    array (size=1)
    ‘error’ => string ‘Called Mail() without being connected’ (length=37)
    Any idea what I should change?

  • Ryan Brownlow

    I had this issue also. If you are on Godaddy, you need to replace “localhost” with “relay-hosting.secureserver.net”

    • Mark

      I love you

  • ravindra

    not send