Exception when disconnection from smtp.gmail.com

Giganews Newsgroups
Subject: Exception when disconnection from smtp.gmail.com
Posted by:  Thomas Zangl (usen…@tzis.net)
Date: Sun, 17 Apr 2005

Hi,

I am using Indy 10, my idsmtp.pas has version: 1.47

I am getting an exception in the Disconnect method when I send a mail
via GMail. Here is the log:
Stat Connected.
Recv 17.04.2005 21:27:00: 220 mx.gmail.com ESMTP 38sm1034406wrl

Sent 17.04.2005 21:27:00: EHLO helio

Recv 17.04.2005 21:27:00: 250-mx.gmail.com at your service
250-SIZE 20971520
250-8BITMIME
250-STARTTLS
250 ENHANCEDSTATUSCODES

Sent 17.04.2005 21:27:00: STARTTLS

Recv 17.04.2005 21:27:00: 220 2.0.0 Ready to start TLS

Sent 17.04.2005 21:27:00: EHLO helio

Recv 17.04.2005 21:27:01: 250-mx.gmail.com at your service
250-SIZE 20971520
250-8BITMIME
250-AUTH LOGIN PLAIN
250 ENHANCEDSTATUSCODES

Sent 17.04.2005 21:27:01: AUTH LOGIN

Recv 17.04.2005 21:27:01: 334 xxx

Sent 17.04.2005 21:27:01: xxx

Recv 17.04.2005 21:27:01: 334 xxx

Sent 17.04.2005 21:27:01: xxx

Recv 17.04.2005 21:27:01: 235 2.7.0 Accepted

Sent 17.04.2005 21:27:01: RSET

Recv 17.04.2005 21:27:01: 250 2.1.0 Flushed

Sent 17.04.2005 21:27:01: MAIL FROM: x…@gmail.com>

Recv 17.04.2005 21:27:01: 250 2.1.0 OK

Sent 17.04.2005 21:27:01: RCPT TO:<x…@xxx.dhs.org>

Recv 17.04.2005 21:27:02: 250 2.1.5 OK

Sent 17.04.2005 21:27:02: DATA

Recv 17.04.2005 21:27:02: 354 Go ahead

Sent 17.04.2005 21:27:02: Date: Sun, 17 Apr 2005 21:26:55 +0200
Subject: test
<header removed>
Sent 17.04.2005 21:27:02:

Sent 17.04.2005 21:27:02:
test test test testte stte st

Sent 17.04.2005 21:27:02: .

Recv 17.04.2005 21:27:02: 250 2.0.0 OK 1113766025

Sent 17.04.2005 21:27:02: QUIT

Recv 17.04.2005 21:27:03:
Stat Disconnected.

-----
Seems that IdSMTP does not like the last response line before disconnecting:
Recv 17.04.2005 21:27:02: 250 2.0.0 OK 1113766025

Best regards,
Thomas

Replies