Delphi Indy Socket Error 11004
Contents |
here for a quick overview of the site Help Center Detailed answers to any questions you might have Meta Discuss the workings and policies of this site About Us Learn more about Stack Overflow the company Business Learn more about
Socket Error 11004 Delphi Ftp
hiring developers or posting ads with us Stack Overflow Questions Jobs Documentation Tags Users Badges Ask delphi indy socket example Question x Dismiss Join the Stack Overflow Community Stack Overflow is a community of 4.7 million programmers, just like you, helping each other. Join socket error 11004 windows live mail them; it only takes a minute: Sign up Get extended error information when an error 11004 occurs using TIdSmtp.Connect() method? up vote 2 down vote favorite I have a Delphi 6 application that sends E-mails with attachments. When I
Socket Error 11004 Error Number 0x800ccc0d
first tested it I got an 11004 error (policy violation) when I called TIdSmtp.Connect(). It turned out my E-mail server SMTP setting were wrong and now it works fine. But know my users are going to run into trouble and I'd like to know if there is a way to get more extensive error information back from the SMTP server via the Indy components to help with my debugging efforts. I am using Indy 9 with Delphi 6.
Dns Could Not Be Resolved Socket Error 11004
Is there a way to get a much richer report and find out what the probable cause for the error is? (e.g. - SSL required, From field not filled in, rejected domain, etc). Also, same question but when an error occurs on the TIdSmtp.Send() method? delphi email smtp indy share|improve this question asked May 17 '12 at 4:39 Robert Oschler 5,954935137 add a comment| 1 Answer 1 active oldest votes up vote 4 down vote accepted EIdSMTPReplyError is raised in response to an error message from the SMTP server at the SMTP protocol layer. 11004 is a socket/DNS error, not an SMTP error. There would be no additional error information available other than the basic OS error message (which you can get from SysErrorMessage()): The requested name is valid and was found in the database, but it does not have the correct associated data being resolved for. Regarding Send(), you can look for EIdSMTPReplyError exceptions, like @TLama showed. That will help some, and if the server supports Extended Error Codes then you might get a little bit closer. But more times then not, you will not likely be able to distinquish EXACTLY what went wrong without looking at the actual SMTP command/response traffic over the wire. Regarding SSL/TLS errors in particular, one of several different things may happen, depending on your TIdSMTP configuration: 1) you might get a general EIdSocketError exception raised, like wi
running a
Socket Error 11004 Grabit
service to send any emails in our company database. socket error 11004 hatası The service will run fine until I get the socket error # 11004 for whatever http://stackoverflow.com/questions/10629908/get-extended-error-information-when-an-error-11004-occurs-using-tidsmtp-connect reason, after I get this error any time I try and connect to the mail server from that point on this error keeps popping up unitl I restart the service. http://www.delphigroups.info/2/06/187701.html Is there any way around this without completly restarting the service. Thanks in advance Cam Schwieder Other Threads 1. indy version 9 getting socket error 11004? 2. Indy FTP Demo with Socket Error # 11004 3. Socket Error # 11004 Help please 4. Socket error #11004 5. Socket-Error #11004 6. Indy Socekt Error 11004 7. Error 11004 8. idFTP Error Number 11004 9. IB 5.6 guardian restarts after server reports INET/INET_connect: getservbyname failed, error code = 11004 10. problem running interbase 6.0 in win 2000 (error code 11004)
IdFtp do try Host := aHost; Username := aUsername; Password := aPassword; Connect; except http://www.delphigroups.info/2/1d/182929.html AnyError := true; end; if AnyError then Result := IdFTP.xxxGetLastErrorxxx ? Is there a way to get the last socket error code? I didnt found a property for that. (And GetLastError does not work) Thanks for any hint. Martin Jame Delphi Developer Wed, 30 Nov 2005 15:34:31 GMT Re:How to get last Indy Socket error code Is there a way to get the last socket error code? Quote> I didn?t found a property for socket error that. > (And GetLastError does not work) GetLastError is probably called in Indy to generate the exception object when a winsock error occurs. I think you will have to resort to getting the error code from this object when a winsock error happens. EldSocketError certainly has a lastError property but the top Indy exception class does not. For Indy non-socket exceptions, I guess you could define your own error codes, if you really want to. Do you have to have this socket error 11004 number, or can you just log/whatever the exception.message? Rgds, Martin Stev Delphi Developer Wed, 30 Nov 2005 15:46:48 GMT Re:How to get last Indy Socket error code Quote> Do you have to have this number, or can you just log/whatever the > exception.message? Thanks, I found another solution (I have to add "IdStack" unit to uses clause) if AnyError then begin Result := GStack.LastError; // for WinSock errors if Result = 0 then Result := IdFtp.LastCmdResult.NumericCode; // for server error codes ... Chad Z. Hower aka Kudz Delphi Developer Thu, 01 Dec 2005 10:15:57 GMT Re:How to get last Indy Socket error code "Steve"