Compiling ppSMTPIndy10
Indy version : 10
RB Version : 14.06
Delphi Version : 2007
ppSMTPIndy10.pas will not compile on my system because of the {$IFDEF
Delphi12} directive. My IdSMTP.pas (Indy) unit uses defines satDefault
NOT atDefault. Should I just tweak the RB source or is something else
going on?
constructor TppSMTPIndy.Create;
begin
inherited Create;
FSMTP := TIdSMTP.Create(nil);
{$IFDEF Delphi12}
FSMTP.AuthType := satDefault;
{$ELSE}
FSMTP.AuthType := atDefault;
{$ENDIF}
RB Version : 14.06
Delphi Version : 2007
ppSMTPIndy10.pas will not compile on my system because of the {$IFDEF
Delphi12} directive. My IdSMTP.pas (Indy) unit uses defines satDefault
NOT atDefault. Should I just tweak the RB source or is something else
going on?
constructor TppSMTPIndy.Create;
begin
inherited Create;
FSMTP := TIdSMTP.Create(nil);
{$IFDEF Delphi12}
FSMTP.AuthType := satDefault;
{$ELSE}
FSMTP.AuthType := atDefault;
{$ENDIF}
This discussion has been closed.
Comments
The version of Indy that is shipped with Delphi 2007 uses the older at*
AuthType enumerated types. It appears that perhaps you updated your
version of Indy to the latest so the version directives are incorrect
for the version of Delphi you are using. You can simply remove the code
and ifdef directives to solve the problem (leaving the AuthType :=
satDefault; line.
Nico Cizik
Digital Metaphors
http://www.digital-metaphors.com
Yes, indeed I've updated. Just wanted to check something else wasn't
afoot. Thanks.