.comment { color: gray; } .keyword { font-weight: bold; } .html .atribute .value { color: green; }

четверг, 14 мая 2009 г.

Письмо не может быть отправлено - E-mail could not be sent

Joomla 1.5.9

Кнопка E-mail (отправить ссылку другу) предназначена для отправки ссылки на материал другу. Но у меня по каким то причинам при отправке говорит - "Письмо не может быть отправлено".
В этом баг репорте не нашел информацию которая помогла бы мне в этой проблеме.
Но в этом баг репорте нашел то что мне помогло:

Submitted By: Rupert Bailey
Adddate: 2009-03-31 08:06:41
I just realised what is going on!
Above the send() function is the mailTo() function which sets the current time
is used as the "com_mailto.formtime" timestamp.
$session->set('com_mailto.formtime', time());
This is then used as the "start time" for the timeout between it and
the next time time() is called.
so the timeout should occur at
time() - $timeout > 20
not
time() - $timeout < 20

Thus the LOGIC is wrong.

also 20 seconds might not be long enough. Suggest:
time() - $timeout > 20
please submit a change to the Joomla source to reflect this. (line 58)

if($timeout == 0 || time() - $timeout > 50) {


изменения нужно делать в components/com_mailto/controller.php

Комментариев нет:

Отправить комментарий