Login  
Search All Forums
Dart Home | PowerTCP Mail for .NET | Custom Development Reply | PowerTCP Mail for .NET Topics | Forums   
AuthorForum: PowerTCP Mail for .NET
Topic: Smtp posting to Amazon SES
rdevelyn

From: United Kingdom
Posts: 8
Member Since: 12/04/14
posted December 4, 2014 8:57 AM

We get the following intermittent error when we try to send to the Amazon server using SMTP:

"Line from server not terminated."

This appears to be the fault of the remote end, as it recovers soon afterwards, but I'm not sure.

Any ideas what might be causing this and is there anything we should configure differently at our end to stop it happening?

Cheers

Richard
Nick B (Admin)

From: Utica, NY USA
Posts: 567
Member Since: 05/25/10

Extra Support Options
Custom Application Development

posted December 4, 2014 11:08 AM

Hello,

Typically, this exception is thrown when the server did not terminate a line as expected (with a CRLF), or the component timed out waiting for the CRLF. Is there any inner exception? That could indicate the cause.

You may try increasing the receive timeout: Component.Connection.SocketOption.ReceiveTimeout
rdevelyn

From: United Kingdom
Posts: 8
Member Since: 12/04/14
posted December 4, 2014 11:14 AM

Thanks, I'll give that a go.
rdevelyn

From: United Kingdom
Posts: 8
Member Since: 12/04/14
posted December 4, 2014 11:21 AM

Ok - just a follow on from this:

What is a sensible value?

And should I also set Snmp.Timeout?

And (sorry), what about on the receiving side - should I allow setting of Imap.Timeout and the SocketOption.ReceiveTimeOut to similar values?

Cheers

Richard
rdevelyn

From: United Kingdom
Posts: 8
Member Since: 12/04/14
posted December 4, 2014 11:22 AM

Sorry - I meant smtp.timeout.
Nick B (Admin)

From: Utica, NY USA
Posts: 567
Member Since: 05/25/10

Extra Support Options
Custom Application Development

posted December 4, 2014 11:40 AM

What version of the component are you using? The current one does not have an Smtp.Timeout property.

A sensible value really depends upon your server and your needs. I can only recommend trying out different values (such as by incrementing by 1 second (1000) for each test) to find out what is best for your server.

Setting the timeout on other objects such as Imap is an option, but I can't say whether it would be necessary for your setup.
rdevelyn

From: United Kingdom
Posts: 8
Member Since: 12/04/14
posted December 5, 2014 7:01 AM

Ok - thank you.

Richard
Reply | PowerTCP Mail for .NET Topics | Forums   
This site is powered by PowerTCP WebServer Tool PowerTCP WebServer for ActiveX