Watch, Follow, &
Connect with Us

For forums, blogs and more please visit our
Developer Tools Community.


Welcome, Guest
Guest Settings
Help

Thread: XE6 Indy SMTP sslvSSLv1 compile error


This question is not answered. Helpful answers available: 2. Correct answers available: 1.


Permlink Replies: 1 - Last Post: Jul 14, 2014 12:17 AM Last Post By: Andrew Hill
Andrew Hill

Posts: 7
Registered: 2/10/04
XE6 Indy SMTP sslvSSLv1 compile error  
Click to report abuse...   Click to reply to this thread Reply
  Posted: Jul 13, 2014 12:29 AM
Hi, I am having trouble with Indy SMTP under XE6

idSMTP1.AuthType:= satDefault;
IdSSLIOHandlerSocketOpenSSL1.Destination:= MyQry1.FieldByName('ServerAddress').AsString+':'+MyQry1.FieldByName('ServerPort').AsString;
case MyQry1.FieldByName('SSLMode').AsInteger of
1: begin
SecureMode:= True;
IdSSLIOHandlerSocketOpenSSL1.SSLOptions.Method:= sslvSSLv1;
end;
2: begin
SecureMode:= True;
IdSSLIOHandlerSocketOpenSSL1.SSLOptions.Method:= sslvSSLv2;
end
else begin
SecureMode:= False;
end;
end; // Case
if SecureMode = True then begin
idSMTP1.IOHandler:= IdSSLIOHandlerSocketOpenSSL1;
idSMTP1.UseTLS:= utUseRequireTLS; // Ports 465, 587
end else begin
idSMTP1.IOHandler:= nil;
idSMTP1.UseTLS:= utNoTLSSupport; // Ports 25
end;
IdSSLIOHandlerSocketOpenSSL1.SSLOptions.Mode:= sslmClient;
IdSSLIOHandlerSocketOpenSSL1.MaxLineAction:= maException;
IdSSLIOHandlerSocketOpenSSL1.SSLOptions.VerifyMode:= [];
IdSSLIOHandlerSocketOpenSSL1.SSLOptions.VerifyDepth:= 0;

Cannot compile with error at sslvSSLv1 and sslvSSLv2 please advise - thanks.
Andrew Hill

Posts: 7
Registered: 2/10/04
Re: XE6 Indy SMTP sslvSSLv1 compile error  
Click to report abuse...   Click to reply to this thread Reply
  Posted: Jul 14, 2014 12:17 AM   in response to: Andrew Hill in response to: Andrew Hill
I made a typo

sslvTLSv1

Now working
Legend
Helpful Answer (5 pts)
Correct Answer (10 pts)

Server Response from: ETNAJIVE02