Blog / Form submission in WordPress

Form submission in WordPress

by SW Team

When making our website with WordPress it is necessary to have configured the sending of forms from the page itself, so that users can contact us quickly and effectively.

This method allows us to give an extra way of communication to the usual ones or even not having to provide corporate emails or phone numbers, which we may prefer to keep private.

Methods of sending forms by e-mail

Currently, to send the forms of a web page, the most used methods are: to use the Mail function of PHP or to use a SMTP server.

The first method (Mail function) is an insecure method that can cause you more problems than solutions, because it sends the mails without the need to authenticate against the mail server, for this reason all our servers have the Mail function disabled by default, guaranteeing an extra point of security.

The second method, is to use a SMTP server to send the form, it is the most advisable, since all mail that is sent, is authenticated against the mail server, which allows us to create a specific account for that purpose, channeling all the forms through that account, in a safe way.

SMTP sending configuration

In our company we like to make things easy and that is why all WordPress comes with the "WP Mail SMTP" plug-in preinstalled and configured with the mail server corresponding to your hosting service and with the email account you have created with your WordPress (if you do not specify any, it is created with the name "[email protected]").

This way you only need a form creation plug-in, which allows you to define the SMTP sending so that the form uses this configuration to be sent. For example, if we install the free plug-in "WPFOMS" we will only have to create the form and drag it to all the pages where we want it to appear, since the two plug-ins understand each other and there is no need to configure anything.

Thus, in a matter of a couple of minutes, we can set up a fully functional form that uses the email account associated with WordPress, to make submissions and without using any code.

TIP Add a CAPTCHA to your forms to give them another layer of security. If we go to the settings of the commented form plug-in (WPFOMS > Settings > CAPTCHA), it will allow us to configure a CAPTCHA account that we can use in all our forms. The CAPTCHA account must be purchased separately (free versions are available).

With these indications we hope that you can configure your forms in the WordPress hosted in our company in a few minutes, quickly and securely. All our hosting allow you to install WordPress on them with a single click. Do not wait any longer, hire now your hosting or cloud for your business in