Re: errors with sending email using mime/smtp package

From: Peter Campbell (pc_at_acs.co.nz)
Date: 05/07/04


Date: Fri, 7 May 2004 14:55:15 +1200

I posted a new message but here is that comment also...

I posted a message a few days ago and have been trying to solve the problem
I get when sending email to a particular SMTP server.
I have isolated the problem to be related to the size of the message -
nothing to do whether attachments or not.

Here is the transcript of the message (as recorded by sockspy).

14:34:59 connect from 127.0.0.1 localhost 25 1528
14:34:59 connecting to smtp.xtra.co.nz:25
14:35:02 220 web4-rme.xtra.co.nz ESMTP server ready Fri, 7 May 2004 14:34:51
+1200
14:35:02
14:35:02 EHLO localhost
14:35:02
14:35:03 250-web4-rme.xtra.co.nz
14:35:03 250-HELP
14:35:03 250-XREMOTEQUEUE
14:35:03 250-ETRN
14:35:03 250-PIPELINING
14:35:03 250-DSN
14:35:03 250-8BITMIME
14:35:03 250 SIZE 52428800
14:35:03
14:35:03 MAIL FROM:<rachael.a@becarparts.co.nz>
14:35:03
14:35:03 250 Sender <rachael.a@becarparts.co.nz> Ok
14:35:03
14:35:03 RCPT TO:<rachael.a@becarparts.co.nz>
14:35:03
14:35:03 250 Recipient <rachael.a@becarparts.co.nz> Ok
14:35:03
14:35:03 DATA
14:35:03
14:35:03 354 Ok Send data ending with <CRLF>.<CRLF>
14:35:03
14:35:03 MIME-Version: 1.0
14:35:03 Content-ID: <4293226069.1083897299.67@pc1>
14:35:03 From: <rachael.a@becarparts.co.nz>
14:35:03 To: rachael.a@becarparts.co.nz
14:35:03 Subject: Invoice TEST
14:35:03 Date: Fri, 07 May 2004 14:34:59 +1200
14:35:03 Message-ID: <4293226069.1083897299.68@pc1>
14:35:03 Content-Type: multipart/mixed;
14:35:03 boundary="----- =_FJPvtTXYqgFpLgR1pPzd/w=="
14:35:03
14:35:03 ------- =_FJPvtTXYqgFpLgR1pPzd/w==
14:35:03 MIME-Version: 1.0
14:35:03 Content-ID: <4293226069.1083897299.65@pc1>
14:35:03 Content-Type: text/plain
14:35:03
14:35:03 This email contains an electronic invoice.
14:35:03
14:35:03
14:35:03 ------- =_FJPvtTXYqgFpLgR1pPzd/w==
14:35:03 MIME-Version: 1.0
14:35:03 Content-ID: <4293226069.1083897299.66@pc1>
14:35:03 Content-Type: text/plain
14:35:03 Content-Transfer-Encoding: quoted-printable
14:35:03
14:35:03
14:35:03 ############################################
14:35:03 ## (c) Peter Campbell Software 2001-2004, all rights reserved.
##
14:35:03 ## http://www.fastbase.co.nz
=
14:35:03 ##
14:35:03 ############################################
14:35:03 BALANCE_CURRENCY char(3) NULL,

** I have removed about 500 lines of text here that was also sent **

14:35:03 PAYMENT_METHOD char(1) NULL,
14:35:03 SUPPLIER_CODE char(1
14:35:03
14:35:03 .
14:35:03
14:35:03 RSET
14:35:03 QUIT
14:35:03
14:35:03 ----- closed connection -----
14:35:03 waiting for new connection...

As you can see the system has added a blank line, dot, then blank line well
before the end of the file. The message/file I was sending did not stop
where it did - somehow the message has been truncated.
I have now tried this on a couple of SMTP servers and get similar results.
The SMTP does not log anything out of the ordinary, it gets what is sent and
accepts it.

Please help.



Relevant Pages

  • eror sending message with mime/smtp (flush). message size?
    ... I get when sending email to a particular SMTP server. ... 14:35:03 MIME-Version: 1.0 ... 14:35:03 Content-Type: text/plain ...
    (comp.lang.tcl)
  • RE: msbase.jar, mssqlserver.jar and msutils.jar
    ... | Content-Type: text/plain; ... Microsoft CDO for Windows 2000 ...
    (microsoft.public.sqlserver.jdbcdriver)
  • Re: Linux, Nachrichten & ActiveX
    ... Wenn die Kopfzeile 'Content-type' fehlt, ... Internetstandard MIME vor, dass von einem Text im ... | syntactically invalid Content-Type header field is encountered. ... | the presence of a MIME-Version header field and the absence of any ...
    (de.comp.os.unix.linux.misc)
  • RE: Server Error: Front Page Security Violation
    ... | Content-Type: text/plain ... | | Thread-Topic: Server Error: Front Page Security Violation ... | | X-Tomcat-NG: microsoft.public.frontpage.extensions.windowsnt ...
    (microsoft.public.frontpage.extensions.windowsnt)
  • Re: Umlaute werden in Newsgroup weggefressen
    ... | Content-Type: text/plain; ... Da hast Du Dein Problem in rec.skiing... ... Hast Du selbst Hand an den Zeichensatz angelegt oder andere Nachrichten ...
    (microsoft.public.de.german.inetexplorer.ie6.outlookexpress)