This post shows how to install and configure the “Simple Contact Us” DNN module. The module can be downloaded from DNN Store.
1- To start installing the Simple Contact Us module login to your website with admin rights, then go to extensions as displayed in figure 1.1.
2- Choose the installation file as displayed in figures 1.2, 1.3 and 1.4.
3- Follow the installation process as displayed in figures 1.5, 1.6 and 1.7.
4- After installing the model, now you need to add it to the page. Navigate to the page that you need to add the module to, then add the Simple Contact Us module to the page as described in figures 1.8, 1.9 and 1.10.
After installing the Simple Contact Us module, you need make sure that the SMTP is configured correctly on your site then you will need configure the Simple Contact Us module.
2.1 Setup SMTP
1- To setup SMTP on your website select servers from the DNN menu as displayed in figure 2.1
2- Select “Server Settings”, then configure your SMTP as displayed in figure 2.2.
3-After setting up the SMTP, verify the setting by testing the SMTP using “Test SMTP Settings” as displayed in figure 2.3. Make sure you get a success message, otherwise the SMTP server is not configured correctly.
2.2 Configure Simple Contact Us Module
2.2.1 Configure Display Fields
1- Navigate to the page that has Simple Contact Us Module, then click on “Edit” to go to the edit page as displayed in figures 2.4.
2- In the edit page start to configure the fields starting by the text fields. For each text fields you can configure to display the field or not, if it is a required field or not and configure the field display name as displayed in the figure 2.5.
3- Configure the email field similar to the text fields as displayed in the figure 2.6.
4- For each drop down list fields you can configure to display the field or not, if it is a required field or not and configure the field display list of items. You need to enter the list of values as comma separated list (e.g. “General, Sales, Support”) as displayed in the figure 2.6.
5- Configure the Subject, Message, the text of the send button as displayed in figure 2.7.
6- Configure the user messages as displayed in figure 2.7.
2.2.2 Configure Email Settings
1- Under Email Setting, set the From Email(s) (email will be used to send the send us email) and the Send To Email(s) (email(s) that will receive the message), CC and BCC as displayed in figure 2.8.
2- If you want the user to receive a confirmation email after sending the message on the website, configure the confirmation email settings as displayed in figure 2.8.
2.2.3 Security Settings
1- To configure the security settings use the security configuration as displayed in figure 2.9.
2- If you want to disable security set the Security Mode to None.
3- If you want to use CAPTCHA set the Security Mode to CAPTCHA .
4- If you want to use reCAPTCHA set the Security Mode to reCAPTCHA and enter the site key and the secret key that you got from google (https://developers.google.com/recaptcha/intro)
5- Click Save to save your settings.
You can customize the displayed fields and the displayed text by editing the Simple Contact Us Module as described above. If you want to customize the display to change the order of the controls or the look and feel, you can do that by clicking on the settings button then choose develop as displayed in figure 3.1
Then you can edit the code for the view, or you can add/update the CSS files. The most important thing is to avoid renaming or removing any of the existing controls.