Login | Register For Free | Help
Search for: (Advanced)

Mailing List Archive: Wikipedia: Mediawiki

Configure mail client

 

 

Wikipedia mediawiki RSS feed   Index | Next | Previous | View Threaded


jumper99 at gmx

May 8, 2008, 3:23 AM

Post #1 of 3 (273 views)
Permalink
Configure mail client

Hi,

I'm using Mediawiki 1.12 in a chroot'ed environment. I'm used to use
mini_sendmail in those environments but without luck with mediawiki:

UserMailer::send: sending mail to Abcdef <helmut[at]domain.tld>
Sending mail via internal mail() function
Error sending mail

What do I need to use either sendmail to send mails from mediawiki or to use
the "internal mail() function"? Is it phpmailer? Can I rise the debug output
to get more information?

Thanks, Helmut

--
No Swen today, my love has gone away
My mailbox stands for lorn, a symbol of the dawn



_______________________________________________
MediaWiki-l mailing list
MediaWiki-l[at]lists.wikimedia.org
https://lists.wikimedia.org/mailman/listinfo/mediawiki-l


jumper99 at gmx

May 8, 2008, 8:45 AM

Post #2 of 3 (267 views)
Permalink
Re: Configure mail client [In reply to]

Helmut 'Ingrid' Schneider <jumper99[at]gmx.de> wrote:

> I'm using Mediawiki 1.12 in a chroot'ed environment. I'm used to use
> mini_sendmail in those environments but without luck with mediawiki:
>
> UserMailer::send: sending mail to Abcdef
> <helmut[at]domain.tld> Sending mail via
> internal mail() function Error sending mail
>
> What do I need to use either sendmail to send mails from mediawiki or to
> use the "internal mail() function"? Is it phpmailer? Can I rise the
> debug output to get more information?

http://www.mediawiki.org/wiki/Manual:$wgSMTP and copy all PEAR files into
the jail. If one has a solution using sendmail I'd be pleased to hear about.



_______________________________________________
MediaWiki-l mailing list
MediaWiki-l[at]lists.wikimedia.org
https://lists.wikimedia.org/mailman/listinfo/mediawiki-l


jlerner at gmail

May 8, 2008, 8:59 AM

Post #3 of 3 (266 views)
Permalink
Re: Configure mail client [In reply to]

On Thu, May 8, 2008 at 11:45 AM, Helmut Schneider <jumper99[at]gmx.de> wrote:
> Helmut 'Ingrid' Schneider <jumper99[at]gmx.de> wrote:
>
>> I'm using Mediawiki 1.12 in a chroot'ed environment. I'm used to use
>> mini_sendmail in those environments but without luck with mediawiki:
>>
>> UserMailer::send: sending mail to Abcdef
>> <helmut[at]domain.tld> Sending mail via
>> internal mail() function Error sending mail
>>
>> What do I need to use either sendmail to send mails from mediawiki or to
>> use the "internal mail() function"? Is it phpmailer? Can I rise the
>> debug output to get more information?
>
> http://www.mediawiki.org/wiki/Manual:$wgSMTP and copy all PEAR files into
> the jail. If one has a solution using sendmail I'd be pleased to hear about.

One time I hacked up UserMailer.php (from 1.9.3) to deal with a
restrictive environment. Use with caution:

% diff mediawiki-1.9.3/includes/UserMailer.php UserMailer-hacked.php
87c87
< require_once( 'Mail.php' );
---
> // local edit - require_once( 'Mail.php' );
106c106
< $mail_object =& Mail::factory('smtp', $wgSMTP);
---
> /* local edit - $mail_object =& Mail::factory('smtp', $wgSMTP);
110c110,129
< }
---
> } */
>
> // wfDebug( "Sending mail via PEAR::Mail to $dest\n" );
> wfDebug( "Sending mail via phpmailer to $dest\n" );
> // $mailResult =& $mail_object->send($dest, $headers, $body);
> require("c:\php\includes\class.phpmailer.php");
> $mail = new PHPMailer();
> $mail->IsSMTP();
> $mail->Host = "SOMEHOST";
> $mail->SMTPAuth = true;
> $mail->Username = "SOMEUSERNAME";
> $mail->Password = "SOMEPASSWORD";
> $mail->From = "SOMEEMAIL";
> $mail->FromName = "SOMEFROMNAME";
> $mail->AddReplyTo("SOMEEMAIL");
> $mail->AddAddress($dest);
> // $mail->IsHTML(true);
> $mail->Subject = $headers['Subject'];
> $mail->Body = $body;
> $mail->Send();
112,113c131,132
< wfDebug( "Sending mail via PEAR::Mail to $dest\n" );
< $mailResult =& $mail_object->send($dest, $headers, $body);
---
> // just return true for now
> return '';
116c135
< if ($mailResult === true) {
---
> /* local edit - if ($mailResult === true) {
124c143
< }
---
> } */

Joshua

_______________________________________________
MediaWiki-l mailing list
MediaWiki-l[at]lists.wikimedia.org
https://lists.wikimedia.org/mailman/listinfo/mediawiki-l

Wikipedia mediawiki RSS feed   Index | Next | Previous | View Threaded
 
 


Interested in having your list archived? Contact lists@gossamer-threads.com
 
  Web Applications & Managed Hosting Powered by Gossamer Threads Inc.