BorlandTalk.com Forum Index BorlandTalk.com
Borland discussion newsgroups
 
Archives   FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

TIdSMTP.Send Problem

 
Post new topic   Reply to topic    BorlandTalk.com Forum Index -> Delphi Internet Winsock
View previous topic :: View next topic  
Author Message
Thomas Miller
Guest





PostPosted: Fri Mar 05, 2004 4:28 pm    Post subject: TIdSMTP.Send Problem Reply with quote



Here is my problem:

I have a routine that every 5 minutes send out emails.

I open a connection, go through the database, create
the emails, send them out using TIdSMTP.Send

Everything works fine the first time. The second time
it fails with "Bad command sequence" most of the time.
Sometimes a blank error and a couple of times "Connection
closed gracefully". The next time it runs fine.

Basically, every other time it runs it fails. Every
other time it runs fine.

Thoughts??? Thanks.
--
Thomas Miller
Delphi Client/Server Certified Developer
BSS Accounting & Distribution Software
BSS Enterprise Accounting FrameWork

http://www.bss-software.com
http://sourceforge.net/projects/dbexpressplus

Back to top
Chad Z. Hower aka Kudzu
Guest





PostPosted: Fri Mar 05, 2004 5:41 pm    Post subject: Re: TIdSMTP.Send Problem Reply with quote



Thomas Miller <tmiller (AT) bss-software (DOT) com> wrote in news:4048aac0$1
@newsgroups.borland.com:
Quote:
Everything works fine the first time. The second time
it fails with "Bad command sequence" most of the time.

Does your ISP have POP3 before SMTP authentication?


--
Chad Z. Hower (a.k.a. Kudzu) - http://www.hower.org/Kudzu/
"Programming is an art form that fights back"

Is Indy useful to you? Send a postcard please!
http://www.hower.org/kudzu/indypost.html

Back to top
Thomas Miller
Guest





PostPosted: Fri Mar 05, 2004 6:21 pm    Post subject: Re: TIdSMTP.Send Problem Reply with quote




Chad Z. Hower aka Kudzu wrote:

Quote:
Thomas Miller <tmiller (AT) bss-software (DOT) com> wrote in news:4048aac0$1
@newsgroups.borland.com:

Everything works fine the first time. The second time
it fails with "Bad command sequence" most of the time.


Does your ISP have POP3 before SMTP authentication?

This is an internal mail program. I know the company uses
Groupwise, but I am checking on what the SMTP server is and
if there are authentication being performed. If you mean
by does there need to be a Name and password, that answer is
no.

Quote:


--
Chad Z. Hower (a.k.a. Kudzu) - http://www.hower.org/Kudzu/
"Programming is an art form that fights back"

Is Indy useful to you? Send a postcard please!
http://www.hower.org/kudzu/indypost.html

--
Thomas Miller
Delphi Client/Server Certified Developer
BSS Accounting & Distribution Software
BSS Enterprise Accounting FrameWork

http://www.bss-software.com
http://sourceforge.net/projects/dbexpressplus


Back to top
Display posts from previous:   
Post new topic   Reply to topic    BorlandTalk.com Forum Index -> Delphi Internet Winsock All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Powered by phpBB © 2001, 2006 phpBB Group
SEO toolkit © 2004-2006 webmedic.