This article will help you identify why the Nicepage Contact Form element cannot submit emails.

Firstly, let us learn how it works.

Nicepage Contact Form is the standard HTML <form> element. The HTML form is used to collect the data entered in the fields. Then this data is sent to a server for processing. It could be a contact, login, subscribe Form. Even CMS text editor is the HTML form in most cases. That's all the HTML form can do. And that's all the Nicepage Contact Form can do.

So, how can you send emails from a website?

There are two fundamentally possible options: mailto link and sending emails from the server. The mailto link starts the system mail client. The second option is more complex and involves a webserver.

The Form should be linked to the special script that will receive the input data and tell the server what to do with the data entered in the fields: send an email, add the data to the database, etc. Nicepage HTML form uses this way. Therefore, the success of sending an email from the site depends on the correct server settings for sending emails.

For this reason, the Contact Form cannot be tested in the preview mode and when previewing the local page in the browser. To submit the Form, you must upload your website to the server.

To implement sending emails from the server, Nicepage provides the following SUBMIT options:

  • URL
  • Send Email with PHP Script
  • Contact Form 7
  • Joomla Form
  • MailChimp
  • Email (available with Online Builder only)

URL

This option is used to insert a link to the custom send email script. We recommend checking this article for more detail. Here are two major aspects that you should follow:

  1. Correspondence of field name attributes to those used in the script;
  2. server should be properly configured to send emails no matter what method is used. For this, we recommend that you contact the hosting provider.

Send Email With PHP Script

To simplify sending emails from the server, Nicepage provides a built-in PHP script. We recommend checking this article for more detail. This script does not need additional settings except the correct server send email configuration. But the script itself does not need any specific server settings. It uses standard PHP mail() function.
To troubleshoot the possible problems with the Form, we added a form diagnostic script.

To access the results of the diagnostics, you need to open the corresponding page in the browser:

www.domain/scripts/form-diagnostics.php
or
www.domain/website/scripts/form-diagnostics.php (if the website is un subfolder)

You should receive similar results:

form-diagnostics.png

In this example, you can see that the PHP script is uploaded, but the local server is not configured to send emails. If your website is uploaded to the hosting, you should contact the hosting provider regarding server settings.

Contact Form 7

This option is for WordPress websites only. It uses the Contact Form 7 plugin for WordPress to send emails. We recommend checking this article for more detail. Contact Form 7 forms work the same as any other form. The Form uses a special script that uses the form input data to send an email.

To make it work with the Nicepage Form, you need the corresponding CF7 Form with the same fields created when selecting this submit option for the Nicepage Form. In short, Nicepage creates a copy of the CF7 Form to use its script for submission.

  1. Install the Contact Form 7. For more information, please visit:
    https://wordpress.org/plugins/contact-form-7/

  2. The plugin should be properly configured to send emails. Please check the plugin documentation for more detail:
    https://contactform7.com/docs/

  3. The corresponding CF7 Form should exist. It is added automatically. Please be careful and do not remove it.

Joomla Form

This option uses the built-in Joomla send mail option. We recommend checking this article for more detail.
It does not need any additional settings from the Nicepage Form side. But please make sure that you have configured Joomla Mail Settings properly.
If you develop a website on localhost, you can test the Form using Google SMTP:
https://docs.joomla.org/How_do_I_use_Gmail_as_my_mail_server%3F

MailChimp

This option fills MailChimp's list with data captured by the Nicepage Form. We recommend that you check this article for more detail on using this service. As you can see, you should create an equal MailChimp form. This Form should contain the same fiend name attributes as you defined in Nicepage.

Unfortunately, Nicepage select, checkbox, radio-button form elements do not work with the MailChimp form submit settings.

Email

This option is available with the Nicepage Online Builder only. If you faced any problems with email sending with this option, please Contact Support.

This article will help you identify why the Nicepage Contact Form element cannot submit emails. Firstly, let us learn how it works. Nicepage Contact Form is the standard HTML &lt;form&gt; element. The HTML form is used to collect the data entered in the fields. Then this data is sent to a server for processing. It could be a contact, login, subscribe Form. Even CMS text editor is the HTML form in most cases. That's all the HTML form can do. And that's all the Nicepage Contact Form can do. So, how can you send emails from a website? There are two fundamentally possible options: *mailto* link and sending emails *from the server*. The mailto link starts the system mail client. The second option is more complex and involves a webserver. The Form should be linked to the special script that will receive the input data and tell the server what to do with the data entered in the fields: send an email, add the data to the database, etc. Nicepage HTML form uses this way. Therefore, the *success* of sending an email from the site depends on the *correct server settings for sending emails*. For this reason, the Contact Form cannot be tested in the preview mode and when previewing the local page in the browser. To submit the Form, you must **upload your website to the server**. To implement sending emails from the server, Nicepage provides the following **SUBMIT** options: - URL - Send Email with PHP Script - Contact Form 7 - Joomla Form - MailChimp - Email (available with Online Builder only) ## URL This option is used to insert a link to the custom send email script. We recommend checking [this article](page:25066) for more detail. Here are two major aspects that you should follow: 1. Correspondence of field *name* attributes to those used in the script; 2. server should be properly configured to send emails no matter what method is used. For this, we recommend that you contact the hosting provider. ## Send Email With PHP Script To simplify sending emails from the server, Nicepage provides a built-in PHP script. We recommend checking [ this article](page:62334) for more detail. This script does not need additional settings except the correct server send email configuration. But the script itself does not need any specific server settings. It uses standard *PHP mail()* function. To troubleshoot the possible problems with the Form, we added a *form diagnostic script*. To access the results of the diagnostics, you need to open the corresponding page in the browser: www.domain/scripts/form-diagnostics.php or www.domain/website/scripts/form-diagnostics.php (if the website is un subfolder) You should receive similar results: !form-diagnostics.png! In this example, you can see that the PHP script is uploaded, but the local server is not configured to send emails. If your website is uploaded to the hosting, you should contact the hosting provider regarding server settings. ## Contact Form 7 This option is for WordPress websites only. It uses the *Contact Form 7* plugin for WordPress to send emails. We recommend checking [ this article](page:66439) for more detail. Contact Form 7 forms work the same as any other form. The Form uses a special script that uses the form input data to send an email. To make it work with the Nicepage Form, you need the corresponding CF7 Form with the same fields created when selecting this submit option for the Nicepage Form. In short, Nicepage creates a copy of the CF7 Form to use its script for submission. 1. Install the Contact Form 7. For more information, please visit: https://wordpress.org/plugins/contact-form-7/ 2. The plugin should be properly configured to send emails. Please check the plugin documentation for more detail: https://contactform7.com/docs/ 3. The corresponding CF7 Form should exist. It is added automatically. Please be careful and do not remove it. ## Joomla Form This option uses the built-in Joomla send mail option. We recommend checking [ this article](page:66443) for more detail. It does not need any additional settings from the Nicepage Form side. But please make sure that you have configured Joomla *Mail Settings* properly. If you develop a website on localhost, you can test the Form using Google SMTP: https://docs.joomla.org/How_do_I_use_Gmail_as_my_mail_server%3F ## MailChimp This option fills MailChimp's list with data captured by the Nicepage Form. We recommend that you check [ this article](page:2468) for more detail on using this service. As you can see, you should create an equal MailChimp form. This Form should contain the same fiend *name* attributes as you defined in Nicepage. Unfortunately, Nicepage select, checkbox, radio-button form elements do not work with the MailChimp form submit settings. ## Email This option is available with the Nicepage Online Builder only. If you faced any problems with email sending with this option, please <a href="https://nicepage.com/forum/topic/create?private=1">Contact Support</a>.