Keyword

Email Button does not work on items

  • Different Color
  • Different Color's Avatar Topic Author
  • Offline
  • Premium Member
More
14 years 8 months ago #76945 by Different Color
Email Button does not work on items was created by Different Color
I get an error "Email could not be sent" when I try to email an item using the the top tool bar. Is this a bug or are there other reasons it wouldn't work?

www.villagechronicles.net

Emailing my Joomla Articles with the core email button does work fine.

Martha

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

More
13 years 9 months ago #76946 by Giulia Magnesa
Replied by Giulia Magnesa on topic Email Button does not work on items
I have the same problem. Did you resolve it?

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

  • Bryant West Pty Ltd
  • Bryant West Pty Ltd's Avatar
  • Offline
  • New Member
More
13 years 4 months ago #76947 by Bryant West Pty Ltd
Replied by Bryant West Pty Ltd on topic Email Button does not work on items
Me too... any further information woudl be gratly appreciated

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

More
13 years 4 months ago #76948 by Giulia Magnesa
Replied by Giulia Magnesa on topic Email Button does not work on items
Hello,

I have resolved this problem in following way:

open the file components/com_mailto/controller.php

Locate the following line of code (approximatively line 57):

if ($timeout == 0 || time() - $timeout < 20)

 

Change the line to:

if ($timeout == 0 || time() - $timeout > 20)

 

Save, upload and test. You can increase the time from 20 to say 50.

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

  • Bryant West Pty Ltd
  • Bryant West Pty Ltd's Avatar
  • Offline
  • New Member
More
13 years 4 months ago #76949 by Bryant West Pty Ltd
Replied by Bryant West Pty Ltd on topic Email Button does not work on items
Trying it now, and thanks for the prompt reply!O is for Awesome (local humour)

 

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

  • Bryant West Pty Ltd
  • Bryant West Pty Ltd's Avatar
  • Offline
  • New Member
More
13 years 4 months ago #76950 by Bryant West Pty Ltd
Replied by Bryant West Pty Ltd on topic Email Button does not work on items
Hmmm.. sorry that didn;t worki've updated Joomla to 1.5.23The syntax I have is as follows

 

$timeout = $session->get('com_mailto.formtime', time());  if($timeout == 0 || time() - $timeout < MAILTO_TIMEOUT) {I changed this to;$timeout = $session->get('com_mailto.formtime', time());

if ($timeout == 0 || time() - $timeout > 20) {Warning I'm no programmer... that didn't work - have I done somehting stupidly obvious?

I'm using PHP mail function in the joomla backend with SMTP Authentication set to 'No'Any ideas?

 

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

More
13 years 4 months ago #76951 by Giulia Magnesa
Replied by Giulia Magnesa on topic Email Button does not work on items
I'm sorry but I found this solution in this website www.voodish.co.uk, but it seems not work at all today.

As it is a bug of joomla try to see in Joomla.org forum

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

More
13 years 3 months ago #76952 by jeffreyd00
Replied by jeffreyd00 on topic Email Button does not work on items
I need a fix for this too. joomla 1.5.23 and K2

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

More
13 years 3 months ago #76953 by Adam
Replied by Adam on topic Email Button does not work on items
 

Same problem here with J1.5.23 and K2, and I got the email sending function works well, but it cause another problem.

I found it's not the problem of $timeout parametter.

See this in file controller.php in com_mailto:

/ /we return time() instead of 0 (as it previously was), so that the session variable has to be set in order to send the mail         $timeout = $session->get('com_mailto.formtime', time());         if($timeout == 0 || time() - $timeout < MAILTO_TIMEOUT) {             JError::raiseNotice( 500, JText:: _ ('EMAIL_NOT_SENT' ));             return $this->mailto();.... and

        // 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();         }


There are two cases when sending email can cause Joomla show you the "EMAIL_NOT_SENT" parameter in com_mailto in language file. Just change the first EMAIL_NOT_SENT to Error 1 (caused by $timeout) and the second EMAIL_NOT_SENT to Error 2 or whatever you want and then comeback with sending email function of K2. Then you will see it show you the Error 2, mean this error caused by something related to "if((!$link) || (!JURI::isInternal($link)))".

But sorry, I'm not a programmer and I just don't know how to fix :P, I even don't know what it does in com_mailto. I just delete it and email sending goes fine! Here are lines I deleted:

        // 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();         }


When this deleted, email sending works ok, but there is no link to you article included in the email. That's is "another problem" I mentiond before :P

If anyone could help, please let me know

 

 

 

 

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

More
13 years 3 months ago #76954 by jeffreyd00
Replied by jeffreyd00 on topic Email Button does not work on items
I ended up editing the K2 template (item.php) and replacing the email code with a sharethis.com code that only showed Email This Page option.

Not elegant but it works. Would be nice if the K2 developers could help address get to the core of the problem as it seems it is K2 and not Joomla Core to me.

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


Powered by Kunena Forum