Extension talk:EmailPage

Fill wgEmailPageContactsCat with a valid category doesn't show a drop-down list
The category contains subcategory that contains page with email adress

Thanks


 * Sorry, I did not see this before. See this section. Basically this configuration parameter is gone. --&#91;&#91;kgh&#93;&#93; (talk) 18:23, 9 April 2016 (UTC)

PHPMailer class not found!
The current download bundle doesn't seem to work, I get this error PHPMailer class not found! I tried setting $wgPhpMailerClass = "$IP/extensions/EmailPage/PHPMailer_5.2.4/class.phpmailer.php"; Also linked PHPMailer_5.2.4 to phpmailer in the extension dir and copyed it to /usr/share/php. I'm also seeing this in my apache error log PHP Notice: Undefined variable: dir in /home/txeng/mediawiki-1.26.0/extensions/EmailPage/EmailPage_body.php on line 13  Thanks. --Kc5vcx (talk) 03:26, 12 December 2015 (UTC)
 * Sorry, I did not see this before. This issue was reported and fixed at GitHub. You should give the new version 2.4.1 an shot. Cheers --&#91;&#91;kgh&#93;&#93; (talk) 18:26, 9 April 2016 (UTC)

Can't seem to get $wgEmailPageContactsCat to work
Hi, I have been experimenting with this extension and I have managed to get it to work and send emails, but I do not seem to be able to get the $wgEmailPageContactsCat option to work. I am using version 2.4.1, 2016-04-07

I have had a look at the code and I can see how the email page is built, but the page does not seem to be doing anything with $wgEmailPageContactsCat that I have noticed so I am not sure how to debug the process.

What format should the value be?
 * $wgEmailPageContactsCat = 'Catname'; OR
 * $wgEmailPageContactsCat = 'Catergory:Catname'; OR
 * $wgEmailPageContactsCat = 'Catergory:Catname';

When it comes to the subcategories do they only appear if the pages belonging to the subcategory have emails defined? Should this process be able to work with "User:username" pages that are added to the subcategory? Does the email value have to be defined in a template using or does it just parse the first email address on the page?

Also, when emailing a page, is it possible to just email a linkable title instead of the full page?

This option could be very useful for one of my current projects so it would be great to know.

Thanks --Jpadfield (talk) 17:53, 9 April 2016 (UTC)


 * I did not know that this configuration parameter existed. Well, it is indeed in the docu but I just looked at the code and saw that this parameter is no longer there, so it will not work in any case. Cannot tell why and when this was removed though. Cheers --&#91;&#91;kgh&#93;&#93; (talk) 18:01, 9 April 2016 (UTC)


 * Thanks for letting me know, it would have been useful, I will now explore using the API to create new user groups instead. --Jpadfield (talk) 21:16, 9 April 2016 (UTC)


 * Just to say, in case it is of use, if one is using Semantic Mediawiki it is possible to add email from pages listed under a category using an inline "ask" query, a bit like the code below, added to the send function in SpecialEmailPage.php, instead of the section that adds user emails from the media wiki groups. Where "Mbox" is the property for the email addresses:

$ot = $wgParser->parse("",  Title::newFromText('Email List'), new ParserOptions); $test = strip_tags($ot->getText); $elist = explode(",", $test); foreach ($elist as $k => $v) {$this->addRecipient( trim($v) );}


 * To Make the drop down in the first place I also added the following code to the execute function in SpecialEmailPage.php, instead of the section that creates the wiki group drop down. The getCategories function is just a simple list at the moment as I have not worked out how to list subcategories without calling the API.

$groups = " "; $cats = $this->getCategories ; foreach ($cats as $k => $group) {   $selected = $group == $this->group ? ' selected' : ''; $groups .= "$group "; }

--Jpadfield (talk) 12:55, 11 April 2016 (UTC)