One of the best ways to develop your website is to get feedback from its visitors and regular users. Confess it – even when you think that you have made everything about your website perfect, it is very likely you have missed something – something that may make your customers happy. And it is them and only them who can tell you what this thing is. However, few people would open their e-mails and write a message to you. In such cases, that is why it is a necessity to have a feedback section for those who want to leave you a message immediately.
Why do you need a Contact form on your company website?
Generally, adding a Contact form on your website is not mandatory. You can leave your e-mail address and a phone number that your visitors and potential customers will still be able to use in order to contact you. However, don’t forget that one of the main goals of a company website is to make it as easy to use and as customer-friendly as possible.
How does the Contact form work?
The standard WordPress Contact Form includes a couple of fields that need to be filled in by the users – name, e-mail address of the sender and a field for the message itself. When you press the “send” button, the message will be sent to the server, where your website is located. Then, the message is sent as an e-mail to your mailbox, and that is the reason why it has to be processed by a command of the programming language used for servers, such as PHP, for example. It is desirable to create and insert a contact (feedback) form that contains a couple of check boxes for either the name, the e-mail address or the message. After all, sometimes people happen to forget to fill in some of the fields and that is why they must be reminded to do so before sending the message.
How to troubleshoot WordPress Contact Form that does not send e-mails?
Sometimes there happens to be a problem with the WordPress contact form, and the most common one is a form that does not send e-mails. Usually, in such cases when WordPress can’t initially send an e-mail, you have to edit the php.ini file and the sendmail.ini file.
The same situation may happen on a web hosting, and especially when it comes to a free one. The most common reason for such a problem is switching off the mailer daemon by the hosting provider.
The problem arises from the fact that WordPress uses Sendmail for sending e-mails by default. It is highly unlikely for you to have access to the web hosting in order to fix these files, so the best solution in this case is to connect WordPress to some post SMTP server. We recommend you to use GMail; and the only thing that remains is to set up WordPress on GMail.
There are different variations of the solution, which are normally based on using a certain plug-in – for example, WP Mail SMTP.
With each new version, WordPress becomes more and more “hungry” for resources and the use of any additional extensions usually makes the situation more complicated. In practice, WordPress has some built-in tools for solving such a problem, and the only thing you need to do is to set them up properly.
WordPress uses phpmailler in order to send e-mails, and has been able to send e-mails using SSL for quite a long time now. How to link WordPress to GMail from Google Apps?
Sign up in GMail. This will give you access to the mail server of Google – smto.gmail.com.
Then you should check if the following things are present:
- an open 465 port;
- if PHP supports SSL;
- if PHP supports sending e-mails.
Use a script written in a text editor. Give any name, for example – gmailtest.php and upload it to your host. Then contact the address and check what the response is.
Then, using a text editor once again, enter the installation package of WordPress, find the /wp-includes/pluggable.php file and change its content. The last thing you need to do is find the /wp-includes/class-phpmailer.php file and set its parameters properly.
AuthorBio: Rose Fichley is a freelance writer. She is the founder of www.sparklingcarpets.co.uk. She is keen on tech and marketing topics and loves to research for new high-tech equipment.