Delphi Socket Error 11001
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
Delphi Indy Socket Error 11001
Learn more about Stack Overflow the company Business Learn more about hiring developers or eidsocketerror socket error 11001 posting ads with us Stack Overflow Questions Jobs Documentation Tags Users Badges Ask Question x Dismiss Join the Stack Overflow socket error 11001 host not found windows 7 Community Stack Overflow is a community of 4.7 million programmers, just like you, helping each other. Join them; it only takes a minute: Sign up Indy Mail server up vote 2 down vote
Socket Error 11001 Error Number 0x800ccc0d
favorite Following is my code for the smtp client for sending email VAR SMTP : TIdSMTP; MSG : TIdmessage; begin MSG:=TIdmessage.Create(NIL); TRY WITH MSG.Recipients.Add DO BEGIN Name:='me025'; Address:='me025@gmail.com' END; MSG.BccList.Add.Address:='me025@yahoo.com'; MSG.From.Name:='self025'; MSG.From.Address:='self025@127.0.1.1'; MSG.Body.Text:='
Socket Error 11001 H1z1
END; end; which will use a SMTPserver in same pc the smtp server is a working indy 10 unofficial sample http://indy.fulgan.com/ZIP/Indy10demo.zip whenever i connect to the server "Socket error # 11001 Host not found " error occers but smtp server is receiving all the parameters correctly and showing correctly on the GUI delphi share|improve this question asked Dec 13 '11 at 13:11 VibeeshanRC 2,31422977 add a comment| 1 Answer 1 active oldest votes up vote 2 down vote accepted Has your PC an address of 127.0.1.1 or are you trying to use localhost (127.0.0.1)? People should get used to DNS names... as soon as IPv6 will become mainstream at least people won't be able any longer to remember IP numbers easily :) share|improve this answer answered Dec 13 '11 at 14:50 Mad Hatter 70244 thanks now very thing works well (server gets the parameters) and no any exceptions are raised, but the receiver can't get the mail –VibeeshanRC Dec 13 '11 at 15:27 3 @vibeeshanRC: TIdSMTPServer only accepts the raw email data from an SMTP client, like TIdSMTP, nothing else. It is your responsibility in your code to then deliver that email data to the intended
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 socket error 11001 error number 0x800ccc0d outlook express Stack Overflow the company Business Learn more about hiring developers or posting ads with
Socket Error 11001 Hatası
us Stack Overflow Questions Jobs Documentation Tags Users Badges Ask Question x Dismiss Join the Stack Overflow Community Stack Overflow is socket error 11001 jane a community of 4.7 million programmers, just like you, helping each other. Join them; it only takes a minute: Sign up Host not found - Trying to download a csv file using Indy in Delphi http://stackoverflow.com/questions/8489820/indy-mail-server XE7 up vote 0 down vote favorite I'm trying to download a csv from the .gov.uk website, however, when I run the procedure an error is displayed: Socket Error 11001 Host not found. procedure TFrm_Settings.btn_FetchPricesClick(Sender: TObject); var Url, LocalFile: String; FileStrm: TFileStream; Http : TIdHTTP; begin Url := 'http://www.gov.uk/government/uploads/system/uploads/attachment_data/file/400489/weekly_fuel_prices_csv.csv'; LocalFile := 'FuelPrices.csv'; FileStrm := TFileStream.Create(LocalFile, fmCreate); Http:= TIDHTTP.Create(nil); try try Http.Get(Url, FileStrm); finally FileStrm.Free; end; except DeleteFile(LocalFile); raise; end; delphi csv http://stackoverflow.com/questions/28430014/host-not-found-trying-to-download-a-csv-file-using-indy-in-delphi-xe7 delphi-xe indy share|improve this question asked Feb 10 '15 at 11:01 Riley 12 3 That request is redirected, so set Http.HandleRedirects := True before you perform it. P.S. fix your try..finally..except blocks. –TLama Feb 10 '15 at 11:04 Thanks for the quick reply, I added the Http.HandleRedirects := True, but am still experiencing the same error. I also tried accessing several other csv files, with the same result. –Riley Feb 10 '15 at 15:28 Could this be due to the fact that the network I am on uses a proxy? –Riley Feb 10 '15 at 15:31 The error means that the local PC cannot resolve the hostname via DNS. Since the network is using a proxy, you need to connect TIdHTTP to the proxy and let the proxy resolve the DNS. If the network is using an HTTP proxy, you can fill in the details in the TIdHTTP.ProxyParams property. If the network is using a SOCKS proxy, you can assign a TIdIOHandlerStack to the TIdHTTP.IOHandler property, and then assign a TIdSocksInfo to the IOHandler.TransparentProxy property. –Remy Lebeau Feb 10 '15 at 19:05 add a comment| active oldest votes Know someone who can answer? Share a link to this question via email, Goog
Sidebar General FAQ How To's Video Tutorials Reference Guide Troubleshooting how_to:11001 https://wiki.pscs.co.uk/how_to:11001 Socket Error 11001 - Host not found (authoritative answer) This means that the ISP POP3 or SMTP server which you have told VPOP3 to connect to does not currently exist. This might be that you have mistyped the server address, or socket error that your ISP is having temporary problems, or that you are using an internal DNS server or proxy which is either slow or not configured correctly. The first thing to do is to go to the VPOP3 settings, then External Mail → socket error 11001 In Mail (if the error is a 'POP3 Client Error') or Out Mail (if the error is an 'SMTP Client Error'), and check the server addresses are correct - contact your ISP if you are not sure. Also, try PINGing the server addresses from a DOS prompt on the VPOP3 computer - this will show if Windows on that PC is able to resolve the server names to numeric IP addresses correctly. If VPOP3 is connecting through a router or proxy server, then the DNS server settings on the VPOP3 computer (in Control Panel → Network → TCP/IP) could be set incorrectly as well. 11001, dns, winsock, error code how_to/11001.txt · Last modified: 2015/09/23 13:46 (external edit) Page Tools Show pagesourceOld revisionsBacklinksBack to top