×

Error

Please login first

using CB, cannot receive email activation

16 years 1 month ago #59874 by tyniu
Hi,

I solved this problem. My solution isn't elegant (hack rather) but works good.

1)
Edit comprofiler.class.php in path: /administration/components/com_comprofiler

After line:
$cbNotification->sendFromSystem( $user, implode( ', ', $msg ), implode( '\n\n', $msg ) );

add code:

if(!is_object($toid)) {
$query = "SELECT * FROM #__comprofiler c, #__users u WHERE c.id=u.id AND c.id =" . (int) $user->id;
$_CB_database->setQuery($query);
$rowTo = $_CB_database->loadObjectList();
$rowTo = $rowTo[0];
} else {
$rowTo = $toid;
}
$message = $cbNotification->_replaceVariables(implode( '\n\n', $msg ),$rowTo);

mail($rowTo->email, implode( ', ', $msg ), $message ,
"From: YYYY'\r\n'"
."Reply-To: XXXX'\r\n'"
."Content-type: text/plain; charset=UTF-8'\r\n'"
."X-Mailer: PHP/" . phpversion());

2)
Change XXXX and YYYY to good values.

Good luck.

tyniu

Post edited by: tyniu, at: 2008/03/28 00:39

Post edited by: tyniu, at: 2008/03/28 00:40

Post edited by: tyniu, at: 2008/03/28 00:43

Please Log in to join the conversation.

16 years 1 week ago #62604 by selekta
Replied by selekta on topic Re:using CB, cannot receive email activation
I've got the same issue.
I'd like to know if anyone has a solution to this other than that code that was posted. I am not sure if that will work with 1.5, so I am asking "the community".

I've got the regular joomla mailing list sending emails just fine and my joomla config is set to phpmail.

CB simply does not send out emails.

Any ideas?

Come on CB team! Hook us up!:woohoo:

Please Log in to join the conversation.

Moderators: beatnantkrileon
Time to create page: 0.192 seconds

Facebook Twitter LinkedIn