Extension:MassMessageEmail
![]() | This extension is currently not actively maintained! Although it may still work, any bug reports or feature requests will more than likely be ignored. If you are interested in taking on the task of developing and maintaining this extension, you can request repository ownership. As a courtesy, you may want to contact the author. You should also remove this template and list yourself as maintaining the extension in the page's {{extension}} infobox. |
MassMessageEmail Release status: unmaintained |
|
---|---|
Implementation | Special page |
Description | Allows users to send email messages to a list of users |
Author(s) | Ike Hecht (tosfostalk) |
Latest version | 0.2.0 (2017-08-06) |
MediaWiki | 1.25+, possibly earlier |
PHP | 5.3 |
Database changes | No |
License | GNU General Public License 2.0 or later |
Download | |
Translate the MassMessageEmail extension if it is available at translatewiki.net | |
The MassMessageEmail extension allows sending email messages to a list of users. It can also email wiki pages to users by transcluding them within the message. It requires the MassMessage extension. For usage instructions, follow the instructions on that extension's page. If there is a User page in the MassMessage delivery list, instead of posting to the user's talk page, if the wiki can email that user then it will.
Installation[edit]
- Download and place the file(s) in a directory called
MassMessageEmail
in yourextensions/
folder. - Add the following code at the bottom of your LocalSettings.php:
wfLoadExtension( 'MassMessageEmail' );
- Install the hook, as below.
Done – Navigate to Special:Version on your wiki to verify that the extension is successfully installed.
To users running MediaWiki 1.25 or earlier:
The instructions above describe the new way of installing this extension using wfLoadExtension()
.
If you need to install this extension on these earlier versions (MediaWiki 1.25 and earlier), instead of wfLoadExtension( 'MassMessageEmail' );
, you need to use:
require_once "$IP/extensions/MassMessageEmail/MassMessageEmail.php";
Hook installation[edit]
In order for this extension to work, you must modify the source code of your MassMessage extension as follows.
In the file extensions/MassMessage/includes/job/MassMessageJob.php
, find these lines (around line number 180):
// If the page is using a different discussion system, handle it specially
if ( class_exists( 'LqtDispatch' ) && LqtDispatch::isLqtPage( $title ) ) {
... and change to:
// If the page is using a different discussion system, handle it specially
if ( !Hooks::run( 'MassMessageJobBeforeMessageSent', array( $this ) ) ) {
return true;
} elseif ( class_exists( 'LqtDispatch' ) && LqtDispatch::isLqtPage( $title ) ) {
Enabling parsed HTML email[edit]
To have the wiki parse the message being sent as HTML, you'll need to:
- Set $wgAllowHTMLEmail to
true
. - Install Mail_Mime.