+ Reply to Thread
Results 1 to 5 of 5

Thread: [edit]MediaWiki SMTP setting for intranet

Share/Bookmark
  1. #1
    Junior Member CentOS is on a distinguished road
    Join Date
    Feb 2008
    Posts
    2
    Rep Power
    3

    Default [edit]MediaWiki SMTP setting for intranet

    How do I troubleshoot the SMTP/email notice feature? within the univeristy MediaWiki intranet installations, we get:

    "Could not send confirmation mail. Check address for invalid characters.
    Mailer returned: Failed to connect to mailserver at "localhost" port 25,
    verify your "SMTP" and "smtp_port" setting in php.ini or use ini_set()"

    ... like everyone else installing and supporting MediaWiki software, I'm in the middle of trying to successfully implement and support MediaWiki for my users, and I'm desperately looking for a supportive community where the admins set an example of helpfulness and tolerance.

    Any clues to examples of successful intranet SMTP configuration for MediaWiki software?

    Also in my setup: Microsoft Windows 2003, Apache, PHP, PHPMyAdmin,

    Tech Services have not opened 25 on my machine because of security risk is there a way around this at the same time i am not running any mail server on my server either,

    Many Thanks in advance

  2. #2

    Default

    First off, you'll need an SMTP server. Ask tech services what server that is for your organization, or you may be able to figure it out yourself by looking at your own email settings.

    Then, you'll want to set up the following in your LocalSettings.php:
    Code:
    $wgSMTP = array(
     'host'     => "mysmtpserver.mydomain.edu",
     'IDHost'   => "mydomain.edu.com",
     'port'     => 25,
     'auth'     => false,
     'username' => "",
     'password' => ""
    );
    (you may need to add username and password entries, depending on your SMTP setup...again, ask your tech services)

  3. #3
    Junior Member CentOS is on a distinguished road
    Join Date
    Feb 2008
    Posts
    2
    Rep Power
    3

    Default

    I tried editing the localsettings.php and appended the above lines but now I am getting this error,

    Warning: require_once(Mail.php) [function.require-once]: failed to open stream: No such file or directory in C:\wamp\www\XXX\XXX\UserMailer.php on line 87

    Fatal error: require_once() [function.require]: Failed opening required 'Mail.php' (include_path='C:\wamp\www\xxx;C:\wamp\www\xxx/includes;C:\wamp\www\innoc/languages;.;C:\php5\pear') in C:\wamp\www\xxx\includes\UserMailer.php on line 87

    Your help in this matter is highly regarded

    Many Thanks in Advance

  4. #4

    Default

    Does your current PHP installation support mail? If not, you'll need to do that. Google "php pear mail", but if you already have pear running you should only need to:
    Code:
    pear update-channels
    pear install --alldeps Mail

  5. #5
    Junior Member mchlwvr614 is on a distinguished road
    Join Date
    Mar 2008
    Posts
    2
    Rep Power
    3

    Default

    I just ran into this as well. You need to install PHP, read C:\wamp\bin\php\php5.2.5\install.txt. Once you do that you will need to add the mail and net smtp packages.

    Next you will need to modify the local settings.php to include the paths to pear.

    $path = array( $IP, "$IP/includes", "$IP/languages", "C:\wamp\bin\php\php5.2.5\PEAR\PEAR", "C:\wamp\bin\php\php5.2.5\PEAR" );
    #$path = array( $IP, "$IP/includes", "$IP/languages" );
    set_include_path( implode( PATH_SEPARATOR, $path ) . PATH_SEPARATOR . get_include_path() );

    Hope that helps

+ Reply to Thread

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

     

Similar Threads

  1. SMTP E-Mail Problems
    By Tamer Brad in forum Configuration
    Replies: 1
    Last Post: October 17th, 2007, 03:38
  2. Using | and | to form a box around text
    By p3aul in forum WikiCode Formatting
    Replies: 3
    Last Post: February 26th, 2007, 19:46

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts