![]() |
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:
Würd mich über Ideen freuen. Danke im voraus.
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; Gruß |
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:
Also:
type
TIdSMTPAuthenticationType = (satNone, satDefault, satSASL); Zitat:
|
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 |
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.
|
Re: IDSMTP.AuthType := atNone funktioniert unter Delphi 2010
Zitat:
Zitat:
Gruß Assertor |
Alle Zeitangaben in WEZ +1. Es ist jetzt 10:56 Uhr. |
Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
LinkBacks Enabled by vBSEO © 2011, Crawlability, Inc.
Delphi-PRAXiS (c) 2002 - 2023 by Daniel R. Wolf, 2024-2025 by Thomas Breitkreuz