korvin1000 0 Posted December 13, 2009 Author Report Share Posted December 13, 2009 спасибо Link to post Share on other sites
korvin1000 0 Posted December 15, 2009 Author Report Share Posted December 15, 2009 Нет. Речь об этом вот: http://ru2.php.net/manual/en/function.mail.php Где она у вас вызывается? В файле vam_php_mail.inc.php её нет. Link to post Share on other sites
support 447 Posted December 15, 2009 Report Share Posted December 15, 2009 Для отправки используется PHPMailer, он сидит в /includes/external/phpmailer. Там вызывается. Link to post Share on other sites
korvin1000 0 Posted December 15, 2009 Author Report Share Posted December 15, 2009 ....Для отправки используется PHPMailer, он сидит в /includes/external/phpmailer. А где именно в коде у вас вызывается функция mail и какие параметры ей передаются, желательно знать что в этих параметрах? Link to post Share on other sites
support 447 Posted December 15, 2009 Report Share Posted December 15, 2009 Я ж Вам указал папку. Берёте html-редактор, который умеет искать файлы внутри папки, задаёте в поиске mail и находите за пару секунд нужный файл. Только зачем копаться в готовой библиотеке, там и так всё правильно. Link to post Share on other sites
korvin1000 0 Posted December 15, 2009 Author Report Share Posted December 15, 2009 это хостеру нужно... пытаюсь наладить почту Link to post Share on other sites
support 447 Posted December 15, 2009 Report Share Posted December 15, 2009 В /includes/external/phpmailer/class.phpmailer.php В методе MailSend 4 строки с mail функцией. Но я Вам сразу говорю, phpMailer пользуются миллионы людей по всему миру и там в коде всё правильно. Link to post Share on other sites
lodos 0 Posted December 15, 2009 Report Share Posted December 15, 2009 такая задача: есть один товар. Например, смеситель такой-то. у него существует несколько цветов: белый, стальной, золотой для каждого цвета - своя цена, но товар один и тот же. пример: http://www.sanart.ru/show_good.php?idtov=83347770&grid=7 как можно реализовать такую фичу? Link to post Share on other sites
support 447 Posted December 15, 2009 Report Share Posted December 15, 2009 Через атрибуты товара, вот описание - http://vamshop.ru/manual/ch05s05.html Link to post Share on other sites
lodos 0 Posted December 15, 2009 Report Share Posted December 15, 2009 благодарю! помогло )) Link to post Share on other sites
korvin1000 0 Posted December 15, 2009 Author Report Share Posted December 15, 2009 Выглядеть будет вот так http://famet.ru/product_info.php?products_id=15 А вот как выровнять, что бы под названием атрибута, в столбик стояли значения атрибута? Link to post Share on other sites
support 447 Posted December 16, 2009 Report Share Posted December 16, 2009 Атрибуты рисуются html-шаблоном - /templates/шаблон/module/product_options/multi_options.html Наверное нужно просто свой шаблон нарисовать. Link to post Share on other sites
support 447 Posted December 16, 2009 Report Share Posted December 16, 2009 korvin1000 Только по поводу ссылки. Checkbox атрибуты так работать не будут как у Вас по ссылке, вот описание про checkbox атрибуты - http://vamshop.ru/manual/ch05s05.html#id2776531 Что б правильно работали checkbox нужно делать одно название атрибута = одно значение, т.е. не должно быть несколько значение у атрибута если задан тип checkbox Link to post Share on other sites
korvin1000 0 Posted December 16, 2009 Author Report Share Posted December 16, 2009 Вернемся к почте Файл vam_php_mail.inc.php заменил на: <?php /* ----------------------------------------------------------------------------------------- $Id: vam_php_mail.inc.php 1129 2007-02-07 10:51:57 VaM $ VaM Shop - open source ecommerce solution http://vamshop.ru http://vamshop.com Copyright © 2007 VaM Shop ----------------------------------------------------------------------------------------- based on: © 2003 nextcommerce (vam_php_mail.inc.php,v 1.17 2003/08/24); www.nextcommerce.org © 2004 xt:Commerce (vam_php_mail.inc.php,v 1.17 2003/08/13); xt-commerce.com Released under the GNU General Public License ---------------------------------------------------------------------------------------*/ // include the mail classes function vam_php_mail($from_email_address, $from_email_name, $to_email_address, $to_name, $forwarding_to, $reply_address, $reply_address_name, $path_to_attachement, $path_to_more_attachements, $email_subject, $message_body_html, $message_body_plain) { //echo "from_email_address = $from_email_address"; $to = $to_email_address; $from = $from_email_address; $name = $from_email_name; $subject = $email_subject; $message = $message_body_plain; $headers = 'From: '. $name .' <'. $from .">\r\n" . 'Reply-To: '. $from ."\r\n" . 'X-Mailer: PHP/' . phpversion(); mail($to, $subject, $message, $headers); } ?> РАБОТАЕТ!!!!! только проблема: что-то с кодировкой, приходят закорючки Как это можно исправить? И еще... есть какие нибудь замечания, советы? Link to post Share on other sites
korvin1000 0 Posted December 17, 2009 Author Report Share Posted December 17, 2009 отправитель в base64 кодируется. где и как в коде можно это отладить? Link to post Share on other sites
support 447 Posted December 17, 2009 Report Share Posted December 17, 2009 Ну вот Вы ж сами заменили код на свой mail .... Наверное здесь и нужно его править, Ваш код, переменную отправителя - $from Link to post Share on other sites
lodos 0 Posted December 17, 2009 Report Share Posted December 17, 2009 думаю, что в консоли сделать поиск на функцию base64_encode. в результатах искать имя файла, содержащее *mail* Link to post Share on other sites
support 447 Posted December 17, 2009 Report Share Posted December 17, 2009 или может поменять: $from = $from_email_address;[/code] на: [code]$from = base64_encode($from_email_address); или наоборот: $from = base64_decode($from_email_address);[/code] Link to post Share on other sites
korvin1000 0 Posted December 17, 2009 Author Report Share Posted December 17, 2009 $from = base64_decode($from_email_address); $from = base64_encode($from_email_address); В почте рамблер и майл не работает. А яндексу все равно что так - что эдак, получает текст в нормальном виде, а тема письма не нормальное. Link to post Share on other sites
support 447 Posted December 17, 2009 Report Share Posted December 17, 2009 Ну тогда я не знаю даже как исправить. Link to post Share on other sites
korvin1000 0 Posted December 17, 2009 Author Report Share Posted December 17, 2009 VaM, чуть чуть осталось.... и у всех это проблема решиться Link to post Share on other sites
support 447 Posted December 17, 2009 Report Share Posted December 17, 2009 Ну я не знаю, что это за проблема, в phpMailer я лезть не буду, он и так по умолчанию правильно работает. Link to post Share on other sites
korvin1000 0 Posted December 17, 2009 Author Report Share Posted December 17, 2009 думаю, что в консоли сделать поиск на функцию base64_encode. в результатах искать имя файла, содержащее *mail* Нашел в /includes/external/phpmailer/class.phpmailer.php 1. case 'base64': /* chunk_split is found in PHP >= 3.0.6 */ $encoded = chunk_split(base64_encode($str), 76, $this->LE); break; 2. if (function_exists('mb_strlen') && $this->HasMultiBytes($str)) { // Use a custom function which correctly encodes and wraps long // multibyte strings without breaking lines within a character $encoded = $this->Base64EncodeWrapMB($str); } else { $encoded = base64_encode($str); 3. do { $offset = $avgLength - $lookBack; $chunk = mb_substr($str, $i, $offset, $this->CharSet); $chunk = base64_encode($chunk); $lookBack++; /includes/external/phpmailer/class.smtp.php 1. // Send encoded username fputs($this->smtp_conn, base64_encode($username) . $this->CRLF); 2. // Send encoded password fputs($this->smtp_conn, base64_encode($password) . $this->CRLF); Посоветуйте, плиз, что тут можно исправить? Link to post Share on other sites
support 447 Posted December 17, 2009 Report Share Posted December 17, 2009 Ну я ж так понял Вы ж свой код вставили в vam_php_mail.inc.php и теперь у Вас не используется PHPMailer в Вашем коде, а отправляется сразу из vam_php_mail файла, тем кодом, что Вы туда вставили. Link to post Share on other sites
korvin1000 0 Posted December 17, 2009 Author Report Share Posted December 17, 2009 Значит править только там? больше файлов с mail не нашел Link to post Share on other sites
Recommended Posts