Home arrow Forum Problems with sending mail from patched forum
  Welcome, Guest. Please login or register.
Did you miss your activation email?
November 22, 2008, 05:40:49 AM
Home New Posts Search Calendar


Login with username, password and session length
+  Joomla Forum
|-+  Joomla Hacks
| |-+  Joomla-SMF Forum Support
| | |-+  Joomla-SMF 2.0.x (Moderators: -Wolverine, kai920)
| | | |-+  Problems with sending mail from patched forum
0 Members and 1 Guest are viewing this topic. « previous next »
Pages: [1] Go Down Print
Author Topic: Problems with sending mail from patched forum  (Read 449 times)
Palant
Joomla Newbie
*

Karma: +0/-0
Offline Offline

Posts: 3


View Profile
Problems with sending mail from patched forum
« on: August 24, 2007, 08:44:26 AM »

Hello!
Have some problems with sending mail (with activation links and notify) from patched forum. I use hoster's SMTP server (that is hoster's polisy), that has qmail on it. Of itself it it doesn't cause any problems with sending mails from Joomla and SMF, but when forum is being patched and I use the system of registration through SMF, I get a following errors in SMF's log:

Code:
http://site/forum/index.php?option=com_smf&Itemid=26&action=pm&sa=send2
Problem with sending mail. Error: 451 See http://pobox.com/~djb/docs/smtplf.html.

Code:
http://site/forum/index.php?option=com_smf&Itemid=26&action=register2
Problem with sending mail. Error: 451 See http://pobox.com/~djb/docs/smtplf.html.

I have:

Joomla 1.13
SMF 1.1.3
JSMF 2.0.2.1
SMF registration system in options
Apache/2.2.0 (Unix) PHP/5.1.2
SunOS webhost3 5.10 Generic_118833-02 sun4u
SEF in Joomla and SMF enabled


That looks like a problem with function integrateOutgoingEmail (), because, as I told you before, the Joomla and SMF when they are not patched remarkably send mails to users after registration and reports from forum.

I try to change \n\r to \r\n in

Code:
function integrateOutgoingEmail($subject, &$message, $headers)
{
    global $boardurl;

    $jsmf =& jsmfFrontend::singleton();

    $smf_message_search  = array();
    $smf_message_replace = array();

    if ((strpos($message, $boardurl . '/index.php') !== FALSE)) {
        //$pattern = '/'.str_replace('/', '\/', preg_quote($boardurl)).'.*[ |\n]/';
        //improved to handle other url ending scenarios
        $pattern = '/'.str_replace('/', '\/', preg_quote($boardurl)).'.* *\n*\r*/';
        //$pattern = '/'.str_replace('/', '\/', preg_quote($boardurl)).'.* *\n*/';
        $count = preg_match_all($pattern, $message, $matches);
        $links = array_unique($matches[0]);
        foreach ($links as $link) {
            array_push($smf_message_search, $link, '&');
            array_push($smf_message_replace, $jsmf->fixLink($link)."\n\r", '&');
        }
        $message = str_replace($smf_message_search, $smf_message_replace, $message);
    }
    unset($smf_message_search, $smf_message_replace);
    return true;
}

But then i have blank page at http://site/forum/index.php?option=com_smf&Itemid=26&action=register2

Any way to fix it?
Thanks in advance!

Sorry for my english %)
Logged
Pages: [1] Go Up Print 
« previous next »
Jump to:  



Login with username, password and session length

Powered by MySQL Powered by PHP Joomla Forum | Powered by SMF 1.1 RC1.
© 2001-2005, Lewis Media. All Rights Reserved.
Joomla Bridge by JoomlaHacks.com
Valid XHTML 1.0! Valid CSS!

Joomla Hacks is a Joomla Components, Joomla Modules, Joomla Templates, & Joomla Mambots resource portal. None of the text or images in this public website may be copied without the expressed written consent of the authors. Copyright 2005 by JoomlaHacks.com. Powered by Joomla. All rights reserved.
Terms of Use
Joomla Hacks



Joomla Hacks
German Lang French Lang Italian Lang Spanish Lang Japanese Lang Chinese Lang
Search Contact About Advertise Blogs Topsites Submit News Register Login