Thursday, August 1, 2013

Filled Under: , , ,

How to send emails in Wordpress with Contact Form 7

English Troubleshooting Web Wordpress
Recently I was working with a client's Wordpress-based site where they had configured a contact form using Contact Form 7 to send emails to clients. I'm not going to enter in details on how to use Contact Form 7 since there are good guides in the plugin's site.

The thing is that after configuring Contact Form 7, I found issues sending emails. The Contact Form 7 owner posted a link to a blog that explained how to solve this for specific configurations using WP-Mail-SMTP plugin. This gave some guidance but I had to tweak it a lot (for example, changing from WP-Mail-SMTP to WP-SMTP) to make it work for me, and I hope with the following instructions you will be able to solve it in your site too.

First of all, my configurations:
  • Wordpress, version 3.5.2
  • Contact Form 7, version 3.4.2
  • WP-SMTP, version 1.1.5
  • The site is hosted in GoDaddy.
Notice that I use WP-SMTP instead of WP-Mail-SMTP.

First, you have to change the WP-SMTP configuration. You can do it through Settings -> WP-SMTP. Set the following:
                From: my email (ex: "asdf@gmail.com")
                From Name: "Whatever you like"
                Host: localhost
                SMTP Secure: None
                Port: 25
                SMTP Authentication: No
                All the other fields empty. 

WP-SMTP Configuration

You should be able to send a test email using the fields at the bottom of the form. If this works, you're almost done!

Finally,  another problem that I found is that you cannot send empty message body in the Contact Form (notice the [your-message] value in the picture below). Based on the Contact Form Docs, I configured the contact form as shown. The field [email-88] is the name of the field email that the user introduced in the form.

The reply-to header was a nice touch that I took from Mario Varga's post.

Contact Form 7 Configuration
Hope it works for you!

Cvielma

Author

I'm a software developer, with main interest in SOA, Web and Mobile applications design and development. I'm also interested in Travel, Politics, Photography and Volunteering.

"We are what we repeatedly do.Excellence, then, is not an act, but a habit." (Aristotle) is my motto .

54 comments:

  1. You will need to make fake email ID for facebook or for anyone if you want to tell anyone your personal email id then you will need to make fake email address using this
    get anonymous email

    ReplyDelete
  2. I set up everything like you said and it still does not work!

    http://www.portlightadventures.com/main/

    ReplyDelete
    Replies
    1. What error is it showing? Do you have access to the logs? Can you post it?

      Delete
  3. I have same Issue

    SMTP -> ERROR: Failed to connect to server: Connection refused (111)

    ReplyDelete
  4. I'd like to know how can I change "from" from "Test Email" sender name. Currently it only works with "Wordpress" sender.

    ReplyDelete
    Replies
    1. I don't get it. What are you trying to achieve?

      Delete
  5. First available with WordPress Edition 2.8, this design tag profits the information of a tag. A tag ID can be approved as a parameter, but if no tag ID is approved, the information present queried tag will be came back.Because WordPress connections with this data source by itself, you as an end customer, shouldn't have to fear much about its framework.

    ReplyDelete
  6. thank you, I was banging my head on the wall, that extra line on the headers solved it. I owe you a beer!

    ReplyDelete
    Replies
    1. hahaha that's awesome! I'm glad it worked for you too!

      Delete
  7. thank you very much! you saved my day

    ReplyDelete
  8. It worked, thank you for the great post!

    ReplyDelete
  9. You can do this and not worry about all the extra settings:

    Log into your cPanel and hit MX Entry > Email Routing > Remote Mail Exchanger (instead of Local Mail Exchanger). If you do not have access to this setting you can call Godaddy and ask them to do it.

    ReplyDelete
  10. thank you because honestly I just found this great trick

    ReplyDelete
  11. Before I would not know How to send emails in Wordpress with Contact Form 7 but now I have known it very clearly which is very effective to me as well.

    ReplyDelete
  12. woow...This is really cool, I really like this

    ReplyDelete
  13. please explain in detail, I am not sure thank you very much

    ReplyDelete
  14. good sahre,,,, im verry thank to you

    ReplyDelete
  15. good information -- thanks to the administrator of this website

    ReplyDelete
  16. This comment has been removed by a blog administrator.

    ReplyDelete
  17. Hey,thank you so much for such an important post.The imperative point to note is that the sending and getting of emails depends vigorously on both the server where your WordPress installation is hosted and the email configuration of the local computer where the emails should be gotten.Have a good day.

    Julie Burton.

    ReplyDelete
  18. It's working perfectly. Thank you.

    ReplyDelete
  19. Thanks for the post. It worked for me.

    Regards,
    Shalini

    ReplyDelete
  20. This comment has been removed by a blog administrator.

    ReplyDelete
  21. If you have a cute little baby, you need to make a celebration by creating a baby shower. It could be fun and exciting not only for you but also for those who attend. In creating this plan, you need to be creative and make it unique. Famous teddy bears

    ReplyDelete
  22. Plugins are basically add-ons that can be easily installed in the WordPress dashboard area to add features that are not part of the core code. If you need a specific feature or features that are not built-in, there are literally thousands of plugins available to enhance WordPress' functionality.https://medijo.lt/etiketes/

    ReplyDelete
  23. We have sell some products of different custom boxes.it is very useful and very low price please visits this site thanks and please share this post with your friends. how to make a website

    ReplyDelete
  24. Your site is truly cool and this is an extraordinary moving article. hosting services south africa

    ReplyDelete
  25. Plugins are basically add-ons that can be easily installed in the WordPress dashboard area to add features that are not part of the core code. http://buatpaspor.com/

    ReplyDelete
  26. The download will be a ZIP archive; it will most likely be around two megabytes in size. Remember, it doesn't install on your computer; it installs on your web host, and I'll explain next what a web host is, so for now all you want to do is download it.wordpress expert help

    ReplyDelete
  27. Very nice article, I enjoyed reading your post, very nice share, I want to twit this to my followers. Thanks!. Themify review

    ReplyDelete
  28. The most ideal approach to perceive how WordPress streamlines setting up your site is to attempt it for yourself. neuronto deepl wordpress plugin

    ReplyDelete
  29. Its my great pleasure to visit your blog and to enjoy your great posts here. I like it a lot. I can feel that you paid much attention for those articles, as all of them make sense and are very useful.  effective help

    ReplyDelete
  30. Thank you so much for sharing this great blog.Very inspiring and helpful too.Hope you continue to share more of your ideas.I will definitely love to read. clean wordpress site

    ReplyDelete
  31. Be certain you get a ton of pictures of your infant together with his preferred toy.Teddyway Deutschland

    ReplyDelete
  32. The cost is also very reasonable on this product, making it something that parents do not mind buying. panda bear buy australia

    ReplyDelete
  33. Another type of ornament that is simple to make are salt-dough ornaments. Mix together a batch of dough, cut shapes out of the dough with cookie cutters, and then bake the dough in a 200 degree oven. Wholesale glitter by the pound

    ReplyDelete
  34. I have read a few of the articles on your website now, and I really like your style of blogging. I added it to my favorites blog site list and will be checking back soon. Please check out my site as well and let me know what you think. custom writing

    ReplyDelete
  35. Gift buying for your significant other has only one rule: Always Gift. cheap birthday gift ideas

    ReplyDelete
  36. I appreciate your efforts which you have put into this article. This post provides a good idea about UX Design Studio in Mumbai Genuinely, it is a useful article to increase our knowledge. Thanks for sharing such articles here.

    ReplyDelete
  37. Hello Generally there. I ran across your manga blog employing bing. This can be a very well crafted content.

    ReplyDelete

 

Copyright © Librethinking.
Designed by Templateism. Hosted on Blogger Platform.