Студия креативных разработок DevArt.PRO.
Разработка сайтов и форумов под ключ!
Сильнейшая команда в России по vBulletin - читать подробнее...
 
 
 
 

 
 
Здесь скоро опять что то будет...
 
 
 
 
 
 
Loading

Вернуться   форум vBSupport.org > Вопрос — Ответ > International vBulletin > English Forums

Объявления
  • Изменения в правах
  • Каталог Фрилансеров
  • Добро пожаловать!
  • Premoderation
  • Новичкам!
  • For English speaking users
Ответ
 
Опции темы Опции просмотра
Старый 20.11.2005, 18:42   #1
Знаток
 
Аватар для itdevil
How to Patch class_mail.php to fix the SMTP Bug... Patch file included

There is a bug in VB 3.5.1 which make dont let the email to be sent using SMTP service... I found the patch on VB site but i am not understand due to the lack of knowlege of php and VBu... Could anyone help me out how to patch...

Offical Link saying how to fix the bug: hxxxp://www.vbulletin.com/forum/bugs35.php?do=view&bugid=1774


edit includes/class_mail.php

Код:
@@ -542,13 +542,12 @@ class vB_SmtpMail extends vB_Mail
                 return $this->errorMessage('Unexpected response when connecting to SMTP server');
             }
 
-            if (!$this->sendMessage('HELO ' . $this->smtpHost, 250))
-            {
-                return $this->errorMessage('Unexpected response from SMTP server during handshake');
-            }
-
             if ($this->smtpUser AND $this->smtpPass)
             {
+                if (!$this->sendMessage('EHLO ' . $this->smtpHost, 250))
+                {
+                    return $this->errorMessage('Unexpected response from SMTP server during handshake');
+                }
                 if ($this->sendMessage('AUTH LOGIN', 334))
                 {
                     if (!$this->sendMessage(base64_encode($this->smtpUser), 334) OR !$this->sendMessage(base64_encode($this->smtpPass), 235))
@@ -557,6 +556,10 @@ class vB_SmtpMail extends vB_Mail
                     }
                 }
             }
+            else if (!$this->sendMessage('HELO ' . $this->smtpHost, 250))
+            {
+                return $this->errorMessage('Unexpected response from SMTP server during handshake');
+            }

I know i need to edit class_mail.php... but i dont understand what - and + stands for...


I would be a lot thinkful someone can help me out...


Thanks
  Ответить с цитированием
Рекламка
Реклама на форуме
Старый 20.11.2005, 21:47   #2
Milad
Продвинутый
 
Аватар для Milad
- lines are lines to be removed
+lines are lines to be added

don't add - or + signs ...
  Ответить с цитированием
Ответ

Закладки

Опции темы
Опции просмотра

Ваши права в разделе
Вы не можете создавать новые темы
Вы не можете отвечать в темах
Вы не можете прикреплять вложения
Вы не можете редактировать свои сообщения

BB коды Вкл.
Смайлы Вкл.
[IMG] код Вкл.
HTML код Выкл.



 
 

Текущее время: 10:02 24.05.2012. Часовой пояс GMT +4.


Powered by vBulletin® Version 3.0.9
Copyright ©2000 - 2012, Jelsoft Enterprises Ltd. Перевод: zCarot