| Dart Home | PowerTCP Mail for ActiveX | Custom Development | Reply | PowerTCP Mail for ActiveX Topics | Forums |
| Author | Forum: PowerTCP Mail for ActiveX Topic: SMTP via proxy server - timeouts |
| fjlamain From: Pijnacker, Netherlands Posts: 4 Member Since: 08/11/03 |
posted September 1, 2003 10:44 AM I'm using the SMTP control in an application that should (when it's finished) work in different situations. One of wich is sending e-mails via a proxy server. The behaviour in this situation is as follows: -the message is sent to the proxy -the proxy buffers it and starts sending it to the smtp server -when the entire message has been sent to the smtp server it sends a response of some sort, the smtp-control receives this and all is finisched. the problem is the following: - when in blocking mode (i tested this with the sample application): After sending the message, it takes the proxy server some time to send the message. A timout occurs becouse the server doesn't respond fast enough. - when in non-blocking mode (my application): When i wait long enough everythig goes well, but I would like to have a way to monitor the component to see if everything is still ok. Until now (before i tested with a proxy server) I used the progress event to do this, but this doesn't fire after al the data has been sent. Is there any way to get more control in this situation? Regards, Frans-Joseph Lamain |
Tony Priest![]() From: Utica, NY USA Posts: 8466 Member Since: 04/11/00 |
posted September 1, 2003 11:04 AM If you are getting a timeout, it means that the proxy is not providing any feedback, therefore there would be none to report to you. I would try logging in with a low timeout, then just before you call send, set the timeout to a higher value. |
| fjlamain From: Pijnacker, Netherlands Posts: 4 Member Since: 08/11/03 |
posted September 2, 2003 8:57 AM It is a bit hard to determine what this 'higher value' should be. The time between sending the last byte from the client to the proxy and the confirmation of the smtp server depends on two things: - size of the message (that I can determine) - transmisson speed between proxy and smtp server (I have no way of determining that) I don't think it would be good practice to set my timeout to -let's say- 10 minutes, just to be shure. A lot of things may have gone wrong in that time. |
Tony Priest![]() From: Utica, NY USA Posts: 8466 Member Since: 04/11/00 |
posted September 2, 2003 9:06 AM Well, I really don't have any other suggestions. During the time the proxy is relaying the message, there would be no feedback coming back to us to let us know what's going on. The way this server works is unconventional anyway. Normally a server accepts a message and then relays it later. |
| Reply | PowerTCP Mail for ActiveX Topics | Forums |
This site is powered by
PowerTCP WebServer for ActiveX
|