Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 164960 - www-apps/mediawiki needs dev-php/PEAR-Mail to use remote SMTP server
Summary: www-apps/mediawiki needs dev-php/PEAR-Mail to use remote SMTP server
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: New packages (show other bugs)
Hardware: All Linux
: High minor (vote)
Assignee: Philippe Trottier (RETIRED)
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2007-02-02 09:30 UTC by Anton Bolshakov
Modified: 2007-02-08 15:23 UTC (History)
2 users (show)

See Also:
Package list:
Runtime testing required: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Anton Bolshakov 2007-02-02 09:30:29 UTC
www-apps/mediawiki has a feature to use external smtp server.
You can enable it with follow configuration:
$wgSMTP = array(
 "host" => 'smtp.your-server.extension',
 "IDHost" => 'your-domain.extension',
 "port" => "25",
 "auth" => true/false,
 "username" => user,
 "password" => password
);
Gentoo based wiki will fail in this case with the follow:

mediawiki/includes/UserMailer.php on line 87
 Fatal error: require_once() [function.require]: Failed opening required 'Mail.php'

based on http://meta.wikimedia.org/wiki/MediaWiki_User's_Guide:_Tips_and_tricks
it requires dev-php/PEAR-Mail for it.

I suggest to add an optional flag to the ebuild for that.



Reproducible: Always

Steps to Reproduce:
1. enable external smtp server
2. try to send a mail


Actual Results:  
error: Mail.php not found

Expected Results:  
email has been sent
Comment 1 Jakub Moc (RETIRED) gentoo-dev 2007-02-02 09:48:16 UTC
Sigh. We've punted the "dependencies" on mysql/postgresql for exactly the same reason - these are not dependencies. If you require local DB or remote mailserver, install what's needed yourself.
Comment 2 Philippe Trottier (RETIRED) gentoo-dev 2007-02-08 10:10:56 UTC
I will keep this open, and make a list of needed things on the post install doc. That should take care of both issues at hand.
Comment 3 Philippe Trottier (RETIRED) gentoo-dev 2007-02-08 15:23:32 UTC
Added a small note for the dependencies