Introduction
This article aims to show you how to configure the contact form to use the SMTP / PHP server to send emails.
The PHP Mail function uses your localhost to send e-mails from the contact form, while the SMTP function uses a server to send e-mails from your contact form.
Prerequisite
Enter the following address in your web browser : https://mg.n0c.com/en.
Connect to the tool as explained in Websites Creation.
How to Configure PHP Mail
- Go to Settings -> Contact Form:

- Make sure that PHP Mail is selected in the Mailing Method drop-down list (default option).
- You must add the same e-mail in the To (recipient) and From (sender) fields.
- Create a dynamic subject in the Subject field.
- Edit the success message in the Success message field.
- Edit the fail message in the Fail message field.
- Configure the reCAPTCHA (refer to the article How to add a reCAPTCHA in a contact form).

- Click on the Save button.
How to Configure the SMTP Mail
To configure SMTP sending, use one of your e-mail addresses with all the SMTP settings provided by your host in your N0C control panel:
- Click on Messaging.
- In Email Accounts, click on the Account settings icon next to the desired email, so they be displayed in the Account settings window:

- Back in SiteBuilder, go to Settings > Contact Form and select SMTP from the Mailing Method drop-down list.

- Add an SMTP server in the SMTP Server field (if you use a secure server port, please add ssl: // before the server domain, as in “ssl: //domain.com“).
- Add an SMTP port in the SMTP Port field.
- Add the e-mail as displayed in the Account settings in the SMTP Username field.
- Add the password for the email account in the SMTP Password field.
- Click on the Save button.
- You can also configure the same settings as mentioned above in PHP Mail, i.e. change the subject, change the Success/Fail message, and add the reCAPTCHA Site Key to avoid spam.