> > > produces "SMTP component not ready". Can you help me?
As another message already said, you are trying to use an asynchronous (non-blocking) component as a synchronous component. Either revise you way of doing thing or use the "sync" version of the component. It is better to revise your programming model and use the asynchronous model. That is use the events. Look at MailSnd sample program delivered with ICS. Look at the code behind "All In One" button which show how to use the events to chain all operations required to send emails. Once you had a look at the sample, don't hesitate to ask for more questions. Contribute to the SSL Effort. Visit http://www.overbyte.be/eng/ssl.html -- [EMAIL PROTECTED] Author of ICS (Internet Component Suite, freeware) Author of MidWare (Multi-tier framework, freeware) http://www.overbyte.be ----- Original Message ----- From: "lalin" <[EMAIL PROTECTED]> To: "ICS support mailing" <twsocket@elists.org> Sent: Friday, September 01, 2006 12:08 PM Subject: Re: [twsocket] SMTPClient > Hi Bevan > Thanks for your response. I have corrected that but continues giving error. > The first time that execute it, it connects but it fails in Data. > The second time, it passes Connect and Data and it fails in Quit but I don't > receive mail. > I have tested with server 127.0.0.1 or localhost and it is the same. > > Can you help me? > > Regards. > Carlos. > > ----- Original Message ----- > From: "Bevan Edwards" <[EMAIL PROTECTED]> > To: "ICS support mailing" <twsocket@elists.org> > Sent: Thursday, August 31, 2006 4:13 PM > Subject: Re: [twsocket] SMTPClient > > > > Hi Carlos, > > > > Is the "Smtp1.port := 'smpt';" an error in your code or a typo? > > It should be "Smtp1.port := 'smtp';" > > > > Regards, > > > > Bevan > > > > > > lalin wrote: > > > Hello, > > > I use SMTPClient for sending a email since a server with default > smtp server of IIS. The example program find this smtp server. But in my > program, with this code: > > > Smtp1.Host := smtpserver; > > > Smtp1.port := 'smpt'; > > > Smtp1.FromName := name; > > > Smtp1.HdrFrom := mail1; > > > Smtp1.HdrTo := mail2; > > > Smtp1.HdrSubject := title; > > > Smtp1.Connect; > > > Smtp1.Data; > > > Smtp1.quit; > > > > > > produces "SMTP component not ready". Can you help me? > > > > > > Regards. > > > Carlos. > > > > -- > > To unsubscribe or change your settings for TWSocket mailing list > > please goto http://www.elists.org/mailman/listinfo/twsocket > > Visit our website at http://www.overbyte.be > > > > > -- > To unsubscribe or change your settings for TWSocket mailing list > please goto http://www.elists.org/mailman/listinfo/twsocket > Visit our website at http://www.overbyte.be -- To unsubscribe or change your settings for TWSocket mailing list please goto http://www.elists.org/mailman/listinfo/twsocket Visit our website at http://www.overbyte.be