Home General
New Blog Posts: Merging Reports - Part 1 and Part 2

Compiling ppSMTPIndy10

edited October 2012 in General
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}

Comments

  • edited October 2012
    Hi Paul,

    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.

    Best Regards,

    Nico Cizik
    Digital Metaphors
    http://www.digital-metaphors.com
  • edited October 2012
    Thanks Nico

    Yes, indeed I've updated. Just wanted to check something else wasn't
    afoot. Thanks.

This discussion has been closed.