| 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 %) |
Forum 





Author



Logged





