php.ini надо увеличить максимальное время выполнения скрипта, если есть возможность. Если нет доступа к php.ini, можно попробовать в index.php, в самом начале добавить после <?
ini_set("max_execution_time",120);
120 - секунд, максимальное время на выполнение
Вряд ли имеет смысл увеличивать время – если за 30 секунд не отправляется, значит, что-то неправильно работает.
Для начала надо убедиться, что письма в принципе отправляются. Скорее всего, для работы с почтой Google придется обновить PHPMailer (сейчас имеется версия 5.1). Также потребуется на хостинге поддержка OpenSSL. И чтобы письма правильно отсылались, нужны примерно такие команды:
$this->Mailer = 'smtp';
$this->SMTPAuth = true; // enable SMTP authentication
$this->SMTPSecure = "ssl"; // sets the prefix to the servier
$this->Host = "smtp.gmail.com"; // sets GMAIL as the SMTP server
$this->Port = 465; // set the SMTP port for the GMAIL server
$this->Username = "username"; // GMAIL username
$this->Password = "password"; // GMAIL password
-
☆ A M B ☆
- 3,112 Posts
sorry for hijacking this thread,
but what character are you using in this? успе ?
that 00|01, broke the RSS, and of course, it just broke the getFeed snippet.
Rico
Genius is one percent inspiration and ninety-nine percent perspiration.
Thomas A. Edison
MODx is great, but knowing how to use it well makes it perfect!
www.virtudraft.com
Security, security, security! |
Indonesian MODx Forum |
MODx Revo's cheatsheets |
MODx Evo's cheatsheets
Author of
Easy 2 Gallery 1.4.x,
PHPTidy,
spieFeed,
FileDownload R,
Upload To Users CMP,
Inherit Template TV,
LexRating,
ExerPlan,
Lingua,
virtuNewsletter,
Grid Class Key,
SmartTag,
prevNext
Maintainter/contributor of
Babel
Because it's hard to follow all topics on the forum, PING ME ON TWITTER
@_goldsky if you need my help.
Quote from: goldsky at Aug 30, 2010, 06:26 AM
but what character are you using in this?
ш
-
☆ A M B ☆
- 3,112 Posts
Rico
Genius is one percent inspiration and ninety-nine percent perspiration.
Thomas A. Edison
MODx is great, but knowing how to use it well makes it perfect!
www.virtudraft.com
Security, security, security! |
Indonesian MODx Forum |
MODx Revo's cheatsheets |
MODx Evo's cheatsheets
Author of
Easy 2 Gallery 1.4.x,
PHPTidy,
spieFeed,
FileDownload R,
Upload To Users CMP,
Inherit Template TV,
LexRating,
ExerPlan,
Lingua,
virtuNewsletter,
Grid Class Key,
SmartTag,
prevNext
Maintainter/contributor of
Babel
Because it's hard to follow all topics on the forum, PING ME ON TWITTER
@_goldsky if you need my help.
В MODx для отправки сообщений используется стандартная функция mail. Она криво работает с кириллическим алфавитом, я решил проблему написав свою функцию для отправки сообщений.
Basic Manager
Хочешь ускорить развитие Basic Manager? Хочешь создавать невероятно красивые фотогалереи и слайдшоу за 1 клик? Пожертвуй деньги на развитие плагина, WMR: R148348561691. Помни, что даже 50 рублей являются стимуляцией к разработке.
Я в контакте
Проблема решена. Вернее ее и не было. Сегодня на свежую голову догадался проверить почту непосредственно на сервере, а не через почтовую программу - все ОК. Просто в The Bat! нужно было вкл перекодировку в UTF.
Стыдно...