Перейти к публикации
Поиск в
  • Дополнительно...
Искать результаты, содержащие...
Искать результаты в...

Androsss

Пользователи
  
  • Публикаций

    50
  • Зарегистрирован

  • Посещение

Достижения Androsss

Contributor

Contributor (5/14)

  • Conversation Starter
  • First Post
  • Collaborator
  • Week One Done
  • One Month Later

Последние медали

2

Репутация

  1. Моя проблема теперь решена на 2/3!!! То есть, The Bat и Gmail показывают логотип, а вложение в The Bat выглядит, как logo.jpg. Вложение в mail.ru выглядит нормально, а вот логотип до сих пор не отображается... Думаю, написать в службу поддержки.
  2. Для начала, в настройках надо выбрать Почтовый протокол: Mail.
  3. К сожалению, эти правки не помогают решить проблемы с логотипом в письме. Например, применив правки от Yesvik (я с ним переписывался) у меня получилось, что в The Bat появился логотип в теле письма, но во вложении опять неоткрываемый файл с непонятным расширением. В mail.ru логотип по-прежнему не появился, а с вложением картинки тоже самое, что и в The Bat. Gmail тоже не показывет логотип. Если в The Bat открыть вложение письмо.html, то при просмотре в браузере логотип тоже не отображается... Может всё таки можно каким-то образом разрешить эту проблему???
  4. Дело даже не в красоте, а в маркетинговой небходимости! К огромному сожалению, глазами владельца магазина создатели и распространители движка этот продукт не рассматривают... :( Отсюда основные косяки и прут!!!
  5. Это не просто подобное, а конкретный косяк версии 1.0.1 из архива Бабушки. На месте этого инопланетного файла во вложении должна быть картинка с расширением .png для отображения логотипа в теле письма. Кстати говоря, если открыть вложение письмо.html в браузере, то с логотипом тоже самое - он просто не отображается картинкой. Дьявол скрывается по этому адресу: system/library/mail.php Как разобраться с этой проблемой ума не приложу... Не подскажете?P.S. Надо ещё не забывать, что, корректное отображение логотипа и вложения помимо, например, The Bat должно быть, как минимум, и в mail.ru, и в gmail !!!
  6. Это происходит, если при добавлении товара в Админке Вы не указали, что требуется доставка. Вот шаги связанные с доставкой и не участвуют в оформлении заказа. :)
  7. В письме с информацией о заказе покупателю логотип не отображается, а во вложении к этому письму вместо файла картинки, что-то не открываемое вобще... Отзовитесь, пожалуйста, кто знает решение этой заморочки. Версия движка 1.0.1 Необходимый файл файл могу выслать.
  8. Прошу прощение, но в моём случае комментария нет... Что делать???Файл по пути system/library/mail.php выглядит так: <?php final class Mail { protected $to; protected $from; protected $sender; protected $subject; protected $text; protected $html; protected $attachments = array(); public $protocol = 'mail'; public $hostname; public $username; public $password; public $port = 25; public $timeout = 5; public $newline = "\n"; public $crlf = "\r\n"; public $verp = FALSE; public $parameter = ''; public function setTo($to) { $this->to = $to; } public function setFrom($from) { $this->from = $from; } public function addheader($header, $value) { $this->headers[$header] = $value; } public function setSender($sender) { $this->sender = html_entity_decode($sender); } public function setSubject($subject) { $this->subject = html_entity_decode($subject); } public function setText($text) { $this->text = $text; } public function setHtml($html) { $this->html = $html; } public function addAttachment($file, $filename = '') { if (!$filename) { $filename = basename($file); } $this->attachments[] = array( 'filename' => $filename, 'file' => $file ); } public function send() { if (!$this->to) { exit('Error: E-Mail to required!'); } if (!$this->from) { exit('Error: E-Mail from required!'); } if (!$this->sender) { exit('Error: E-Mail sender required!'); } if (!$this->subject) { exit('Error: E-Mail subject required!'); } if ((!$this->text) && (!$this->html)) { exit('Error: E-Mail message required!'); } if (is_array($this->to)) { $to = implode(',', $this->to); } else { $to = $this->to; } $boundary = '----=_NextPart_' . md5(time()); $header = ''; $header .= 'MIME-Version: 1.0' . $this->newline; if ($this->protocol != 'mail') { $header .= 'To: ' . $to . $this->newline; $header .= 'Subject: ' . '=?utf-8?B?'.base64_encode($this->subject).'?=' . $this->newline; } $header .= 'Date: ' . date("D, d M Y H:i:s O") . $this->newline; $header .= 'From: ' . '=?UTF-8?B?'.base64_encode($this->sender).'?=' . '<' . $this->from . '>' . $this->newline; $header .= 'Reply-To: ' . '=?utf-8?B?'.base64_encode($this->sender).'?=' . '<' . $this->from . '>' . $this->newline; $header .= 'Return-Path: ' . $this->from . $this->newline; $header .= 'X-Mailer: PHP/' . phpversion() . $this->newline; $header .= 'Content-Type: multipart/related; boundary="' . $boundary . '"' . $this->newline; if (!$this->html) { $message = '--' . $boundary . $this->newline; $message .= 'Content-Type: text/plain; charset="utf-8"' . $this->newline; $message .= 'Content-Transfer-Encoding: 8bit' . $this->newline . $this->newline; $message .= $this->text . $this->newline; } else { $message = '--' . $boundary . $this->newline; $message .= 'Content-Type: multipart/alternative; boundary="' . $boundary . '_alt"' . $this->newline . $this->newline; $message .= '--' . $boundary . '_alt' . $this->newline; $message .= 'Content-Type: text/plain; charset="utf-8"' . $this->newline; $message .= 'Content-Transfer-Encoding: 8bit' . $this->newline; if ($this->text) { $message .= $this->text . $this->newline; } else { $message .= 'This is a HTML email and your email client software does not support HTML email!' . $this->newline; } $message .= '--' . $boundary . '_alt' . $this->newline; $message .= 'Content-Type: text/html; charset="utf-8"' . $this->newline; $message .= 'Content-Transfer-Encoding: 8bit' . $this->newline . $this->newline; $message .= $this->html . $this->newline; $message .= '--' . $boundary . '_alt--' . $this->newline; } foreach ($this->attachments as $attachment) { if (file_exists($attachment['file'])) { $handle = fopen($attachment['file'], 'r'); $content = fread($handle, filesize($attachment['file'])); fclose($handle); $message .= '--' . $boundary . $this->newline; $message .= 'Content-Type: application/octetstream; name="' . basename($attachment['file']) . '"' . $this->newline; $message .= 'Content-Transfer-Encoding: base64' . $this->newline; $message .= 'Content-Disposition: attachment; filename="' . basename($attachment['filename']) . '"' . $this->newline; $message .= 'Content-ID: <' . basename($attachment['filename']) . '>' . $this->newline . $this->newline; $message .= 'X-Attachment-Id: ' . basename($attachment['filename']) . $this->newline . $this->newline; $message .= chunk_split(base64_encode($content)); } } $message .= '--' . $boundary . '--' . $this->newline; if ($this->protocol == 'mail') { ini_set('sendmail_from', $this->from); if ($this->parameter) { mail($to, '=?UTF-8?B?' . base64_encode($this->subject) . '?=', $message, $header, $this->parameter); } else { mail($to, '=?UTF-8?B?' . base64_encode($this->subject) . '?=', $message, $header); } } elseif ($this->protocol == 'smtp') { $handle = fsockopen($this->hostname, $this->port, $errno, $errstr, $this->timeout); if (!$handle) { exit('Error: ' . $errstr . ' (' . $errno . ')'); } else { if (substr(PHP_OS, 0, 3) != 'WIN') { socket_set_timeout($handle, $this->timeout, 0); } while ($line = fgets($handle, 515)) { if (substr($line, 3, 1) == ' ') { break; } } if (substr($this->hostname, 0, 3) == 'tls') { fputs($handle, 'STARTTLS' . $this->crlf); while ($line = fgets($handle, 515)) { $reply .= $line; if (substr($line, 3, 1) == ' ') { break; } } if (substr($reply, 0, 3) != 220) { exit('Error: STARTTLS not accepted from server!'); } } if (!empty($this->username) && !empty($this->password)) { fputs($handle, 'EHLO ' . getenv('SERVER_NAME') . $this->crlf); $reply = ''; while ($line = fgets($handle, 515)) { $reply .= $line; if (substr($line, 3, 1) == ' ') { break; } } if (substr($reply, 0, 3) != 250) { exit('Error: EHLO not accepted from server!'); } fputs($handle, 'AUTH LOGIN' . $this->crlf); $reply = ''; while ($line = fgets($handle, 515)) { $reply .= $line; if (substr($line, 3, 1) == ' ') { break; } } if (substr($reply, 0, 3) != 334) { exit('Error: AUTH LOGIN not accepted from server!'); } fputs($handle, base64_encode($this->username) . $this->crlf); $reply = ''; while ($line = fgets($handle, 515)) { $reply .= $line; if (substr($line, 3, 1) == ' ') { break; } } if (substr($reply, 0, 3) != 334) { exit('Error: Username not accepted from server!'); } fputs($handle, base64_encode($this->password) . $this->crlf); $reply = ''; while ($line = fgets($handle, 515)) { $reply .= $line; if (substr($line, 3, 1) == ' ') { break; } } if (substr($reply, 0, 3) != 235) { exit('Error: Password not accepted from server!'); } } else { fputs($handle, 'HELO ' . getenv('SERVER_NAME') . $this->crlf); $reply = ''; while ($line = fgets($handle, 515)) { $reply .= $line; if (substr($line, 3, 1) == ' ') { break; } } if (substr($reply, 0, 3) != 250) { exit('Error: HELO not accepted from server!'); } } if ($this->verp) { fputs($handle, 'MAIL FROM: <' . $this->from . '>XVERP' . $this->crlf); } else { fputs($handle, 'MAIL FROM: <' . $this->from . '>' . $this->crlf); } $reply = ''; while ($line = fgets($handle, 515)) { $reply .= $line; if (substr($line, 3, 1) == ' ') { break; } } if (substr($reply, 0, 3) != 250) { exit('Error: MAIL FROM not accepted from server!'); } if (!is_array($this->to)) { fputs($handle, 'RCPT TO: <' . $this->to . '>' . $this->crlf); $reply = ''; while ($line = fgets($handle, 515)) { $reply .= $line; if (substr($line, 3, 1) == ' ') { break; } } if ((substr($reply, 0, 3) != 250) && (substr($reply, 0, 3) != 251)) { exit('Error: RCPT TO not accepted from server!'); } } else { foreach ($this->to as $recipient) { fputs($handle, 'RCPT TO: <' . $recipient . '>' . $this->crlf); $reply = ''; while ($line = fgets($handle, 515)) { $reply .= $line; if (substr($line, 3, 1) == ' ') { break; } } if ((substr($reply, 0, 3) != 250) && (substr($reply, 0, 3) != 251)) { exit('Error: RCPT TO not accepted from server!'); } } } fputs($handle, 'DATA' . $this->crlf); $reply = ''; while ($line = fgets($handle, 515)) { $reply .= $line; if (substr($line, 3, 1) == ' ') { break; } } if (substr($reply, 0, 3) != 354) { exit('Error: DATA not accepted from server!'); } // According to rfc 821 we should not send more than 1000 including the CRLF $message = str_replace("\r\n", "\n", $header . $message); $message = str_replace("\r", "\n", $message); $lines = explode("\n", $message); foreach ($lines as $line) { $results = str_split($line, 998); foreach ($results as $result) { if (substr(PHP_OS, 0, 3) != 'WIN') { fputs($handle, $result . $this->crlf); } else { fputs($handle, str_replace("\n", "\r\n", $result) . $this->crlf); } } } fputs($handle, '.' . $this->crlf); $reply = ''; while ($line = fgets($handle, 515)) { $reply .= $line; if (substr($line, 3, 1) == ' ') { break; } } if (substr($reply, 0, 3) != 250) { exit('Error: DATA not accepted from server!'); } fputs($handle, 'QUIT' . $this->crlf); $reply = ''; while ($line = fgets($handle, 515)) { $reply .= $line; if (substr($line, 3, 1) == ' ') { break; } } if (substr($reply, 0, 3) != 221) { exit('Error: QUIT not accepted from server!'); } fclose($handle); } } } } ?>
  9. И я спасибо! Yesvik отдельный респект!!! :)
  10. Отправить сообщение автору невозможно, а сам он молчит... Поэтому завожу эту тему. Вот, что я написал ему (palcet) на странице его аккаунта: ------------------------------------------------------------------------------------------------------------------------------------------------------------ Здравствуйте! Установил предлагаемый Вами модуль "Генератор - SiteMap OcStore 0.2.2-1.0.1". У меня версия OcStore v1.0.1 В итоге: 1. Файл генерирует страницу route=information/information&information_id=3, которой у меня просто нет... 2. Указываются 3 категории, которые не существуют вообще вместо 5-ти существующих... 3. Отсутствует ссылка на раздел сайта Контакты... 4. Отсутствуют все ссылки на производителей... 5. Подкатегории тоже отсутствуют... 6. Соответствует ли файл sitemap.xml стандартам: http://www.sitemaps.org/ru/protocol.html ??? С уважением, Владимир Андрусенко. ------------------------------------------------------------------------------------------------------------------------------------------------------------ Люди добрые, кто-нибудь знает, как решить эти вопросы в данном модуле? Если решения нет подскажите, пожалуйста, как его удалить плоностью, так как прямой возможности в Админке для этого нет...
  11. Всё просто. На то, что выделено жирным шрифтом поисковики реагируют пристальней. То есть, в плане поисковой оптимизации жирный шрифт для того на что Вы хотите обратить внимание поискового робота лучше, а нормальные ЧПУ, например, типа metall, если речь по этому адресу идёт о металле и само слово металл прописано в заголовке страницы (в тайтле, title), поднимут Ваш проект в поисковой выдаче однозначно!!!
  12. Всем большое спасибо за участие, проблема решена!!!
  13. A что тогда надо??? Ничего не понимаю... B)
  14. Укажите, пожалуйста, те файлы, которые Вам могут понадобиться.
  15. Пациент не только годов дать доступ, предлагая выслать все необходимые для этого файлы, но и сам просит об этом! Люди, ПАМАГИТЕ!!! :)
×
×
  • Создать...

Важная информация

На нашем сайте используются файлы cookie и происходит обработка некоторых персональных данных пользователей, чтобы улучшить пользовательский интерфейс. Чтобы узнать для чего и какие персональные данные мы обрабатываем перейдите по ссылке. Если Вы нажмете «Я даю согласие», это означает, что Вы понимаете и принимаете все условия, указанные в этом Уведомлении о Конфиденциальности.