lalin ha scritto: > 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?
If you want to keep this code structure, use SMTPSync component and check return for each step. By the way, consider to switch to event driven architecture for best performance and better structure. Regards -- Marcello Vezzelli Software Development Department E-Works s.r.l. tel. +39 059 2929081 fax +39 059 2925035 Direzionale 70 - Via Giardini 456/c 41100 Modena - Italy -- 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