1. Home
  2. Site Builder
  3. Configuring a Contact Form with PHP Mail or SMTP in SitePad

Configuring a Contact Form with PHP Mail or SMTP in SitePad

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.

Note : The PlanetHoster Glossary contains explanations on multiple topics and can be consulted to clarify certain terms.

Prerequisite

Enter the following address in your web browser : https://mg.n0c.com/en.

Connect to SitePad as explained in Website Creation with the SitePad Site Builder.

Note : Make sure SitePad is configured in English as explained in the article SitePad – How to Change the Language.

How to Configure PHP Mail

  1. Go to Settings -> Contact Form:              
  1. Make sure that PHP Mail is selected in the Mailing Method drop-down list (default option). 
  2. You must add the same e-mail in the To (recipient) and From (sender) fields.
  3. Create a dynamic subject in the Subject field.
  4. Edit the success message in the Success message field.
  5. Edit the fail message in the Fail message field.
  6. Configure the reCAPTCHA (refer to the article How to add a reCAPTCHA in a contact form).
  1. Click on the Save button.

Note : If your host does not allow sending mail using the local server, you need to configure SMTP mail.

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:

  1. Click on Messaging.
  2. In Email Accounts, click on the Account settings icon next to the desired email, so they be displayed in the Account settings window:
  1. Back in SiteBuilder, go to Settings > Contact Form and select SMTP from the Mailing Method drop-down list.
  1. 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“).
  2. Add an SMTP port in the SMTP Port field.
  3. Add the e-mail as displayed in the Account settings in the SMTP Username field.
  4. Add the password for the email account in the SMTP Password field.
  5. Click on the Save button.
  6. 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.
Updated on March 30, 2022

Related Articles