Does Mediawiki HAVE to use the Pear:Mail functions? The forum software on the server doesn't require the PEAR:Mail functions. It uses simple SMTP stuff.
Is there any way to get the E-mail functions to work without using Pear:Mail?
thanks Erik
__________________________________________________ Do You Yahoo!? Tired of spam? Yahoo! Mail has the best spam protection around http://mail.yahoo.com
On 31/12/06, Eric K ek79501@yahoo.com wrote:
Does Mediawiki HAVE to use the Pear:Mail functions? The forum software on the server doesn't require the PEAR:Mail functions. It uses simple SMTP stuff.
No, MediaWiki can use PHP's built-in mail() function, and will in fact attempt to do so as a default - use of the PEAR::Mail functions is optional and must be enabled in the site configuration.
Rob Church
Hi Rob, thanks for that. I'm trying to use the default mailing function now. It gets there, but the email still isnt being sent. My admin then told me the headers werent being set correctly and then I checked the MW files and found that in userMailer.php, the following line sends the email: mail( $dest, wfQuotedPrintable( $subject ), $body, $headers );
I debugged the values of these data and they were all fine, except "$dest" (the 'To' field), which was just my username e.g. "Erik", instead of what it should be, my email address "Erik79501@yahoo.com"
Thats very strange. My email is there in the DB. It pulls it up correctly as well on my 'preferences' page. Any idea why this is happening? I have no idea on how else to debug this.
I'm using 1.6.8, and I disabled all my extensions as well just to check if that did anything.
Erik
Rob Church robchur@gmail.com wrote: On 31/12/06, Eric K wrote:
Does Mediawiki HAVE to use the Pear:Mail functions? The forum software on the server doesn't require the PEAR:Mail functions. It uses simple SMTP stuff.
No, MediaWiki can use PHP's built-in mail() function, and will in fact attempt to do so as a default - use of the PEAR::Mail functions is optional and must be enabled in the site configuration.
Rob Church _______________________________________________ MediaWiki-l mailing list MediaWiki-l@Wikimedia.org http://mail.wikipedia.org/mailman/listinfo/mediawiki-l
__________________________________________________ Do You Yahoo!? Tired of spam? Yahoo! Mail has the best spam protection around http://mail.yahoo.com
mediawiki-l@lists.wikimedia.org