Добро пожаловать! Это — архивная версия форумов на «Хакер.Ru». Она работает в режиме read-only.
 

Delphi 2010 smtp

Пользователи, просматривающие топик: none

Зашли как: Guest
Все форумы >> [Компилируемые языки] >> Delphi 2010 smtp
Имя
Сообщение << Старые топики   Новые топики >>
Delphi 2010 smtp - 2011-11-14 16:57:17.830000   
Barkass$

Сообщений: 1854
Оценки: 40
Присоединился: 2008-11-11 12:19:45.216666
Видимо я совсем старый стал, или руки искревились за это время. Но в упор не пойму где в 2010 Делфи у компонента idSMTP - свойство AuthenticationType:=atLogin. м? :)
Post #: 1
RE: Delphi 2010 smtp - 2011-11-15 08:50:49.823333   
class0071

Сообщений: 300
Оценки: 0
Присоединился: 2011-01-27 17:15:23.750000
Нет там такого значения для свойства AuthenticationType :) atLogin используется вроде в 7-ой версии. А в 2010 - satDefault… По умолчанию стоит satDefault, юзай это значение :)
Post #: 2
RE: Delphi 2010 smtp - 2011-11-15 09:16:21.083333   
Barkass$

Сообщений: 1854
Оценки: 40
Присоединился: 2008-11-11 12:19:45.216666
Да, спасибо) Я уже разобрался. Только там по дефолту стоит satNone.


На досуге нашел:
For Indy 10 You can use simple AUTH LOGIN similarly to Indy 9.0. Set TIdSMTP.AuthType to atDefault. Then set the Username and password properties in TIdSMTP. This provided for backwards compatibility. For many programs which are distributed to the public or on a mass scale, we recommend that you use Indy 10's SASL framework for authentication so your program can support a wide variety of SMTP servers. Our expanded SASL framework supports TIdSMTP, TIdPOP3, and TIdIMAP4. This framework has plug-in SASL mechanism components for CRAM (Challenge-Response Authentication Mechanism) MD5 SASL (RFC 2195), Anonymous SASL (RFC 2245), External SASL (RFC 2222), Login, One-Time-Only-Password - OTP (RFC 2444), Plain SASL (2595), and S/Key (RFC 2222). You can also write your own SASL mechanism component by writing a descendent of TIdSASL (located in IdSASL). To use this with framework with TIdSMTP: 1. Drop a SASL mechanism component on your form. Those components are located on the new Indy SASL tab in the component palette. 2. In TIdSMTP, set the AuthType property to atSASL. 3. In TIdSMTP, click the button beside the SASLMechanisms property. An editor will appear. 4. Select the SASL mechanism components you wish to use with TIdSMTP from the available listbox. 5. Click the RIght arrow to move those to the Assigned listbox. 6. Click Ok when you are finished
Post #: 3
RE: Delphi 2010 smtp - 2011-11-15 15:15:19.533333   
class0071

Сообщений: 300
Оценки: 0
Присоединился: 2011-01-27 17:15:23.750000

quote:

ORIGINAL: Barkass$

Да, спасибо) Я уже разобрался. Только там по дефолту стоит satNone.


Странно… у меня по дефолту стоит satDefault… но это уже не важно :)
Post #: 4
Страниц:  [1]
Все форумы >> [Компилируемые языки] >> Delphi 2010 smtp







Связаться:
Вопросы по сайту / xakep@glc.ru

Предупреждение: использование полученных знаний в противозаконных целях преследуется по закону.