This user has not specified a valid e-mail address error: MediaWiki
When setting up a MediaWiki site, you may want to allow visitors who are not registered or authenticated in your MediaWiki site to contact you for various reasons. An example of this is, if your MediaWiki site is only editable by a few people, you can have a contact page for visitors to email you if there are any website errors or misinformation on your site. This article will explain how to download, install, and configure the MediaWiki ContactPage extension.
The ContactPage Extension is a free plugin you can get online at the WikiMedia code site. You can access it directly from the link below.
If the link is not accessible, you can follow the steps below to get the ContactPage extension files. The version of this Extension changes frequently, so you can go directly to the WikiMedia code base to find a newer version. Below are the steps to obtain the files needed to install the MediaWiki ContactPage extension.
Click the "raw" link next to each file to download the PHP files to your local computer.
Note! You do not need to download the .gitignore, .gitreview, README, and install.settings files as these are not needed.
You should have the following files on your local computer.
ContactPage.alias.php ContactPage.i18n.php ContactPage.php ContactPage_body.php
Once you have downloaded all the necessary files for the ContactPage Extension to work, you will need to upload and configure the ContactPage extension. Below are the steps to upload and enable the ContactPage extension for MediaWiki.
Create a folder called "ContactPage" in the extensions folder.
Note! You do not need to upload the .gitignore, .gitreview, README, and install, settings files as these are not needed.
Select the LocalSettings.php and edit it with the code editor.
require_once( "$IP/extensions/ContactPage/ContactPage.php" ); $wgContactUser = 'Admin'; $wgContactSender = $wgPasswordSender; $wgContactSenderName = 'Contact Form on ' . $wgSitename;
Save the changes.
Important! If your email for the admin is not set up and authenticated, you will need to confirm the email address in your Admin user preferences. Otherwise you will get a "No e-mal address" error on the contact page. For more information on this please see our article on This user has not specified a valid e-mail address error: MediaWiki.
The ContactPage Extension can have a few different configuration settings for customizing the form. Each setting can be added to your LocalSettings.php to enable or disable the setting. Below is a table with the available Configuration code settings.
|MediaWiki ContactPage Extension Configuration|
|$wgUserEmailUseReplyTo||Can be set to true of false. This will use the visitor's email address as the "Reply-To" address.
Syntax: $wgUserEmailUseReplyTo['contactpage'] = true;
|$wgContactUser||This is set to a string of Characters. This is the username of an account in your MediaWiki that has an enabled and authenticated email address. In this example we use the Admin users email address. The email must be configured in the users Preferences. For more information on how to configure the email in the user preferences, please see our article on This user has not specified a valid e-mail address error: MediaWiki.
Syntax: $wgContactUser = 'Your text goes here';
|$wgContactSender||Uses the email address of the $wgContactUser for the form submittal.
Syntax: $wgContactSender = $wgPasswordSender;
|$wgContactSenderName||This is set to a string of Characters. This will display the name in the email of the receiving email address.
Syntax: $wgContactSenderName = 'Your text goes here';
|$wgContactRequireAll||Can be set to true of false. If this is set to true, the contact form will require the fields in the form to be filled out. The default is False.
Syntax: $wgContactRequireAll['contactpage'] = true
|$wgContactIncludeIP||Can be set to true of false. Enables a checkbox in the contact form that allows the senders IP address to be included in the email.
Syntax:$wgContactIncludeIP['contactpage'] = true;
|$wgCaptchaTriggers||Enables the captcha in the contact form.
Important! This will not work unless reCAPTCHA is enabled. For information on enabling reCAPTCHA in MediaWiki, please see our article on How to enable reCAPTCHA in MediaWiki.
Syntax:$wgCaptchaTriggers['contactpage'] = true;
›Section 2: This user has not specified a valid e-mail address error: MediaWiki
We value your feedback!
new! - Enter your name and email address above and we will post your feedback in the comments on this page!
|1.||Configuring the ContactPage Extension in MediaWiki|
|2.||This user has not specified a valid e-mail address error: MediaWiki|
|3.||How to enable reCAPTCHA in MediaWiki|