Login  
Search All Forums
Dart Home | PowerTCP Mail for ActiveX | Custom Development Reply | PowerTCP Mail for ActiveX Topics | Forums   
AuthorForum: PowerTCP Mail for ActiveX
Topic: message.text size limit?
User193

Posts: 6
Member Since: 03/06/02
posted March 12, 2002 7:46 PM

Is there a size limit on the string that can be assigned to the text property of the message object of an smtp control? In my experience, it seems to work fine up to around 1000 bytes. Any larger than that, I get the following message when trying to execute the Send method of the smtp control:

"The connection has been dropped because of a network failure or because the peer system failed to respond. Also caused when Connect, Send, Receive, Fill or Close methods are used with a Timeout parameter and the operation fails to complete within the specified number of milliseconds."

If this is a limitation of the control, is there a workaround? I want to be able to send longer non-multipart messages than this.

If it's not a limitation of the control, then what do you think is causing the problem? With every other setting the same, using the exact same ASP script, it works fine when the text is less than 1000 bytes and it gets that error when it's larger.

Thanks.

Steve Diamond
User193

Posts: 6
Member Since: 03/06/02
posted March 12, 2002 7:49 PM

Also, I've tested the SMTP server by connecting directly using Outlook Express, and it doesn't mind sending longer messages. So I don't believe the problem is due to a server limitation.

SMD
K M Drake



From: Utica, NY USA
Posts: 3406
Member Since: 07/14/00
posted March 13, 2002 9:42 AM


Hi Steve,
No, I send messages much longer than that all the time. Below is a very simple script that worked fine for me. Does it work for you?
The error you report is a Timeout error. Does increasing the Timeout value have any effect?
Thanks,
-ken

Smtp1.Message.To.Add toAddress
Smtp1.Message.From = fromAddress
Smtp1.Message.Subject = "long text property"
Smtp1.Message.Text = String(5000,"x")
Smtp1.login smtpServer
Smtp1.Send
Smtp1.Logout

K M Drake
Dart Tech Support
User193

Posts: 6
Member Since: 03/06/02
posted March 13, 2002 2:04 PM

Your script does not work for me unless I reduce the message text length to around 1100 bytes.

Increasing the timeout value has no effect.

There just seems to be an odd interaction between your component and the mail server that I'm connecting to (provided by the Electric Mail Company at outbound.electric.net). That server requires authentication, by the way, which works fine for the shorter messages.

My evidence for thinking it's an interaction specifically with your SMTP component is twofold: one, I've successfully sent long messages through that server using Outlook Express; and two, I've successfully sent long messages through that server using the IP*Works SMTP component.

Therefore, I guess I'm going to have to go with IP*Works rather than Dart for this purpose, unless you have a really quick fix.

Thanks for your help.

Steve Diamond
K M Drake



From: Utica, NY USA
Posts: 3406
Member Since: 07/14/00
posted March 13, 2002 3:57 PM


Hi Steve,
Does the problem happen with the latest dlls?
http://www.dart.com/downloads/update.exe
Also, does the VB Smtp Client sample work? In other words, is this isolated to ASP?
Can I test with this server?
Thanks,
-ken

K M Drake
Dart Tech Support
User193

Posts: 6
Member Since: 03/06/02
posted March 13, 2002 4:56 PM

The update didn't help.

I've created a test account on that server that you can use. Send me your email address and I'll send it to you along with the script that I'm using.

Thanks.

Steve Diamond
K M Drake



From: Utica, NY USA
Posts: 3406
Member Since: 07/14/00
posted March 13, 2002 5:09 PM


Hi,
Please send it to support@dart.com.
Thanks,
-ken

K M Drake
Dart Tech Support
Reply | PowerTCP Mail for ActiveX Topics | Forums   
This site is powered by PowerTCP WebServer Tool PowerTCP WebServer for ActiveX