Board index » delphi » Emailing to a LIST of addresses (Indy 10) freezes.
E.P.
![]() Delphi Developer |
Emailing to a LIST of addresses (Indy 10) freezes.2007-04-19 05:18:56 AM delphi179 Hi I am pretty new to this area. I have an App that sends a message to a list of addresses (66 total, in my test). The code is this: SMTPsetup; SMTP.Connect; try for i:=0 to List.count-1 do emailit(List[i].address,msg) finally SMTP.Disconnect; end; where SMTPsetup sets the TIdSMTP component's username, port, and host and emailit sets the TIdMessage component body.text, extraheaders, recipietns etc. and then uses a Send to actually send the email. This all works fine for about the first 30 elements in the list, then the app freezes. Any help? The App should be able to email much larger lists, what amI doing wrong? Thanks Enrico |