From: drscrypt on
I think I have made progress towards identifying where the bug is with
the smtp package. It seems that message size is only an issue when
sending multi-part alternative messages.

Here is a script that reproduces the problem. All those who think this
is a server issue, would you please run it against your servers and see
if you get any errors? You can change the size of the messages but 8000
for either part size causes problem whereas, say, 800 is OK.


Drs


---
set pswd xyz
set server xyz
set port xyz
set user xyz

set msg1 [string repeat "Hello" 8000]
set msg2 [string repeat a 8000]

set m1 [mime::initialize -canonical "text/plain" -string $msg1]
set m2 [mime::initialize -canonical "text/html" -string $msg2]
set m [mime::initialize -canonical "multipart/alternative" -parts [list
$m1 $m2]]
smtp::sendmessage $m -servers $server -ports $port -username $user
-password $pswd -header [list To $user] -header [list From $user]
-header [list Subject Test]