Introduction
This article aims to show you how to configure the contact form settings 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.
Open the interface (how).
How to Select the Contact Form Settings
In the Sidebar menu, select Settings -> Contact Form, which opens the Simple Contact Form interface.
How to Configure PHP Mail
- 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. You can enter multiple recipient addresses separated by commas if you wish.
- 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 (how).
- In the Allowed File Types field, add the file types to be authorized for downloading via the contact form, separating them by commas (for example, doc,txt,jpg).
- Click on the Save button.
How to Configure the SMTP Mail
The way to configure the contact form with SMTP is similar to the one explained above, with the exception of the account settings that you need to provide in addition.
- Select SMTP from the Mailing Method drop-down list:
- To configure SMTP sending, use one of your e-mail addresses with all the SMTP parameters provided by your host in your N0C control panel (how) and fill in the following fields:
- 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.
- Fill in all the information and click on the Save button.