Overview

The Nicepage Form supports sending emails with the PHP script for the HTML export starting from Nicepage 2.7 version.

send-emails-using-php-script.png

The PHP script allows sending emails without using external resources. Please note that sending emails is performed on the server-side. Therefore, your server should be configured to send emails. The following information contains information about how to configure your server to send emails.

Remote Server and GoDaddy Hosting

The Nicepage script uses the PHP Mail Function, therefore PHP should be installed and configured correctly in the php.ini file on your server.

Please read the additional information about PHP configuration in Article 1 or Article 2.

Usually, hosting providers already have PHP configured correctly. For example, Email Sending is working by default on GoDaddy Hosting. Therefore you can use the PHP script generated with Nicepage.

Localhost Setting

If you are running a project on your localhost (XAMPP, WAMP) and you need to test email sending while developing, you have to configure the server manually.

Please read the following articles:

Also, configure the “Less secure apps” settings in the Google Security Settings to avoid problems with the email sending.

Recommendation

We recommend using the reCAPTCHA integration to avoid spam submitted from the Form.

Read more about other methods how to send a Form

## Overview The Nicepage Form supports sending emails with the PHP script for the HTML export starting from Nicepage 2.7 version. !send-emails-using-php-script.png! The PHP script allows sending emails without using external resources. Please note that sending emails is performed on the server-side. Therefore, your server should be configured to send emails. The following information contains information about how to configure your server to send emails. ## Remote Server and GoDaddy Hosting The Nicepage script uses the PHP Mail Function, therefore PHP should be installed and configured correctly in the php.ini file on your server. Please read the additional information about PHP configuration in [Article 1](https://developernote.com/2012/07/how-i-configured-sendmail-for-php-on-ubuntu-server-12-04/) or [Article 2](https://pepipost.com/tutorials/sendmail-in-php-complete-guide/). Usually, hosting providers already have PHP configured correctly. For example, Email Sending is working by default on GoDaddy Hosting. Therefore you can use the PHP script generated with Nicepage. ## Localhost Setting If you are running a project on your localhost (XAMPP, WAMP) and you need to test email sending while developing, you have to configure the server manually. Please read the following articles: - [How To Send Email From Localhost Using PHP](https://www.phpflow.com/php/how-to-send-email-from-localhost-using-php/) - [How to Send Mail from Localhost XAMPP Using Gmail](https://meetanshi.com/blog/send-mail-from-localhost-xampp-using-gmail/) Also, configure the “Less secure apps” settings in the Google Security Settings to avoid problems with the email sending. ## Recommendation We recommend using the [reCAPTCHA](https://nicepage.com/doc/article/61415/recaptcha-integration) integration to avoid spam submitted from the Form. Read more about other methods [how to send a Form](page:4216)