In last tutorial we have done complete setup of wordpress on digitalocean in nginx web server. But i have received many messages that after installing wordpress on digitalocean they are unable to receive messages via contact form.
Contact form 7 is necessary and one of most important plugin of wordpress site. Contact form is required for many purposes and it is must to have one. By default when we complete setup of LEMP on digitalocean, there postfix is not installed in pre-built while installation. So that we have to do by ourselves in order to receive emails from contact form.
What is problem ?
when we try fill details and try to submit the form details, it gives the error with red border lines saying “Failed to send your message”
Solution – Contact form 7 working with Digitalocean
So in order to make it work, we have to install Postfix. Let’s begin
first let’s see what is Postfix ?
It is simple open source mail transfer agent. Which we use as receive and transfer mails on linux system.
Now let’s begin installing. I hope you are familiar with Putty and already logged in into server via putty. If you don’t know, I recommend you to read my previous tutorial in which i have explained about how to use putty and how to login to digitalocean vps using putty.
When you logged in, run the following command to update everything.
As you run the command, you will be prompted to mail configuration. For first prompt you only have to choose “OK” as you are agreed with the terms ( you can do it with arrow keys from keyboard ).
In the next opted screen you will get several options, but from that you have to choose “Internet Site”.
In the next screen you have to enter the domain url.
Example : for this site. We use “itechcolumn.com”
And all done. Now go to your website contact us page and fill information and click submit button. You will be having your mail in your inbox in seconds. 😉