Delphi-PRAXiS

Delphi-PRAXiS (https://www.delphipraxis.net/forum.php)
-   Netzwerke (https://www.delphipraxis.net/14-netzwerke/)
-   -   Delphi IDSMTP.AuthType := atNone funktioniert unter Delphi 2010 not (https://www.delphipraxis.net/144106-idsmtp-authtype-%3D-atnone-funktioniert-unter-delphi-2010-not.html)

TheProfi 30. Nov 2009 12:16


IDSMTP.AuthType := atNone funktioniert unter Delphi 2010 not
 
Hallo zusammen,

bin gerade mein Projekt von Delphi 2005 auf Delphi 2010 zu migrieren. Bekommen allerdings vom Compiler eine Fehlermeldung, dass er atNone und atDefault nicht mehr kennt.
Hab schon jede menge gesucht aber nix gefunden. Hat jemand eine Idee


Delphi-Quellcode:
  login_typ := get_parameter(datamodule1.tblprogrammparameter,'2014');
  {authentication settings}
   case login_typ of
      0: IDSMTP.AuthType := [color=#ff003f]atNone[/color];
      1: IDSMTP.AuthType := [color=#ff003f]atDefault[/color]; {Simple Login}
   end;
Würd mich über Ideen freuen. Danke im voraus.

Gruß

Assertor 30. Nov 2009 12:29

Re: IDSMTP.AuthType := atNone funktioniert unter Delphi 2010
 
Hi TheProfi,

Ein Blick in die automatisch eingebundene IdSMTP.pas Unit in der Uses Clause zeigt:

Delphi-Quellcode:
type
  TIdSMTPAuthenticationType = (satNone, satDefault, satSASL);
Also:

Zitat:

Zitat von TheProfi
Delphi-Quellcode:
  login_typ := get_parameter(datamodule1.tblprogrammparameter,'2014');
  {authentication settings}
   case login_typ of
      0: IDSMTP.AuthType := satNone;
      1: IDSMTP.AuthType := satDefault; {Simple Login}
   end;

Gruß Assertor

TheProfi 30. Nov 2009 12:37

Re: IDSMTP.AuthType := atNone funktioniert unter Delphi 2010
 
Hi Assertor,

vielen Dank. Auf die Idee bin ich im moment nicht gekommen. (blind)

Ich hatte nur in der nachträglich installierten Onlinehilfe von Delphi geschaut und da steht noch:

Declaration
property AuthType: TIdSMTPAuthenticationType;
...
Value Meaning
atNone No authentication is required.
atSASL SASL authentication is required.
atDefault Use the default username and password authentication.
...
The default value for AuthType is DEF_SMTP_AUTH as assigned during initialization of the component.
...
Class
TIdSMTP

Funktioniert. migration damit abgeschlossen. War die letzte Änderung.

Gruß TheProfi

Bernhard Geyer 30. Nov 2009 12:40

Re: IDSMTP.AuthType := atNone funktioniert unter Delphi 2010
 
Für solche Versionsumstellungen ist oft eine grep-Suche über die Quelldateien der Komponente hilfreich. Nicht alle Änderungen fließen in die Doku. Ab und zu werden sie vergessen.

Assertor 30. Nov 2009 12:52

Re: IDSMTP.AuthType := atNone funktioniert unter Delphi 2010
 
Zitat:

Zitat von TheProfi
Hi Assertor,

vielen Dank. Auf die Idee bin ich im moment nicht gekommen. (blind)

[...]

Funktioniert. migration damit abgeschlossen. War die letzte Änderung.

Das freut zu hören, macht doch nichts - dafür ist das Forum da :)

Zitat:

Zitat von Bernhard Geyer
Nicht alle Änderungen fließen in die Doku. Ab und zu werden sie vergessen.

Ähm, *hust* ja. Besonders bei Indy. Die Hilfe ist identisch (!) in (2005?), 2006, 2007, 2009, 2010 :) Scheint Embarcadero nicht zu stören... Wir haben nur Entwickler, niemanden der die Hilfe neu schreibt (Freiwillige hier?). Wenn ich mal zu viel Zeit habe, werd ich mich da mal ransetzten...

Gruß Assertor


Alle Zeitangaben in WEZ +1. Es ist jetzt 15:46 Uhr.

Powered by vBulletin® Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
LinkBacks Enabled by vBSEO © 2011, Crawlability, Inc.
Delphi-PRAXiS (c) 2002 - 2023 by Daniel R. Wolf, 2024 by Thomas Breitkreuz