- Posts: 2
COMMUNITY FORUM
Email to friend from item view
- Dirk Röttges
-
Topic Author
- Offline
- New Member
However, I get a message that the email cannot be sent when trying to send a mail to friend from the item.
I tried sendmail, phpmail and smpt, always get the same message
Please Log in or Create an account to join the conversation.
- Coco Nuts Productions
-
- Offline
- New Member
- Posts: 7
Forms Joomla are working but not kt mail a frend.
Have you already fixed this?
Please Log in or Create an account to join the conversation.
- Coco Nuts Productions
-
- Offline
- New Member
- Posts: 7
If i try the mail link at articles that will work, so it must be a k2 problem
Please Log in or Create an account to join the conversation.
- Coco Nuts Productions
-
- Offline
- New Member
- Posts: 7
k2joom.com/what-is-multinotify
Have a look, also at there page the mail a frend function is not working :woohoo: :whistle:
Please Log in or Create an account to join the conversation.
- Coco Nuts Productions
-
- Offline
- New Member
- Posts: 7
At mailto component, file controler, line 75 (joomla 1.5.25) the error is reported:
// Verify that this is a local link
if((!$link) || (!JURI::isInternal($link))) {
//Non-local url...
JError::raiseNotice( 500, JText:: _ ('EMAIL_NOT_SENT' ));
return $this->mailto();
}
So somehow Joomla mailto component does not like the k2 url.
We will try to check why and fix this
Please Log in or Create an account to join the conversation.
- Coco Nuts Productions
-
- Offline
- New Member
- Posts: 7
Please Log in or Create an account to join the conversation.
- Coco Nuts Productions
-
- Offline
- New Member
- Posts: 7
adjust code topic above at components/com_mailto//controller.php about line 73 to:
$link2 = base64_decode(JRequest::getString('link', '', 'post'));
// Verify that this is a local link
if((!$link2) || (!JURI::isInternal($link2))) {
//Non-local url...
JError::raiseNotice( 500, JText:: _ ('EMAIL_NOT_SENT'));
return $this->mailto();
}
This is a joomla hack so far from good.
Please Log in or Create an account to join the conversation.
- schipperijn
-
- Offline
- New Member
- Posts: 4
something wrong indeed with k2 link ? or my hack?
was:
is now:$link = MailtoHelper::validateHash(JRequest::getString('link', '', 'post'));
$link = base64_decode(JRequest::getString('link', '', 'post'));
Please Log in or Create an account to join the conversation.
- schipperijn
-
- Offline
- New Member
- Posts: 4
We have mixed variables...
$body = sprintf( $msg, $SiteName, $sender, $from, $link);
but we used $link2.....
Is working now :woohoo:
Please Log in or Create an account to join the conversation.