Keyword

Email to friend from item view

  • Dirk Röttges
  • Dirk Röttges's Avatar Topic Author
  • Offline
  • New Member
More
12 years 10 months ago #59714 by Dirk Röttges
Email to friend from item view was created by Dirk Röttges
I have activated the email button in the item view option of the category.
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
  • Coco Nuts Productions's Avatar
  • Offline
  • New Member
More
12 years 9 months ago #59715 by Coco Nuts Productions
Replied by Coco Nuts Productions on topic Re: Email to friend from item view
I have the same with tell a frend.
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
  • Coco Nuts Productions's Avatar
  • Offline
  • New Member
More
12 years 9 months ago #59716 by Coco Nuts Productions
Replied by Coco Nuts Productions on topic Re: Email to friend from item view
I have tryed the solution for anti spam conflict mail popup. That was not the solution here.
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
  • Coco Nuts Productions's Avatar
  • Offline
  • New Member
More
12 years 9 months ago #59717 by Coco Nuts Productions
Replied by Coco Nuts Productions on topic Re: Email to friend from item view
I just look at an k2 expert, if they have this also and....

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
  • Coco Nuts Productions's Avatar
  • Offline
  • New Member
More
12 years 8 months ago #59718 by Coco Nuts Productions
Replied by Coco Nuts Productions on topic Re: Email to friend from item view
I think we have found the error.

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
  • Coco Nuts Productions's Avatar
  • Offline
  • New Member
More
12 years 8 months ago #59719 by Coco Nuts Productions
Replied by Coco Nuts Productions on topic Re: Email to friend from item view
Could it bethe : sign inside url that K2 needs?

docs.joomla.org/JURI/isInternal

Please Log in or Create an account to join the conversation.

  • Coco Nuts Productions
  • Coco Nuts Productions's Avatar
  • Offline
  • New Member
More
12 years 8 months ago #59720 by Coco Nuts Productions
Replied by Coco Nuts Productions on topic Re: Email to friend from item view
Thanks to Pieter and Jesse next to me...
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.

More
12 years 8 months ago #59721 by schipperijn
Replied by schipperijn on topic Re: Email to friend from item view
grrrrrr the mail is send but we now see that there is no link inside that mail :S

something wrong indeed with k2 link ? or my hack?
was:

$link = MailtoHelper::validateHash(JRequest::getString('link', '', 'post'));

is now:

$link = base64_decode(JRequest::getString('link', '', 'post'));

Please Log in or Create an account to join the conversation.

More
12 years 8 months ago #59722 by schipperijn
Replied by schipperijn on topic Re: Email to friend from item view
ah, stom stom stom...
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.


Powered by Kunena Forum