Sockets and Timeouts
Posted: Thu Oct 20, 2011 1:02 pm
Hello all,
I have a question regarding sockets and a possible timeout
The background to this is that I want to send an email from my application.
Using the Sendmail application as a sample,I pulled out the basics of how to
send the mail - and it works great.
However, I'm using a Wifi link which can be a bit flakey, so if this drops connection while
the email is being sent, then the application hangs.
So, my question is, can an SMTP socket used for email have a timeout attached ?
or, would a do events statement somewhere help ?
Kind Regards from a very happy HMG user
I have a question regarding sockets and a possible timeout
The background to this is that I want to send an email from my application.
Using the Sendmail application as a sample,I pulled out the basics of how to
send the mail - and it works great.
However, I'm using a Wifi link which can be a bit flakey, so if this drops connection while
the email is being sent, then the application hangs.
So, my question is, can an SMTP socket used for email have a timeout attached ?
or, would a do events statement somewhere help ?
Kind Regards from a very happy HMG user