This is a C# console app using SMTP to send an email.
The .EML file stays in the Queue folder because I close down the Internet
Connection prematurely. That's why I posted this request ... What's the best
way to keep the Internet Connection live until the IIS server is done
sending the email, as evidenced by the .EML file leaving the Queue folder..
"Ray Costanzo [MVP]" <my first name at lane 34 dot commercial> wrote in
message news:OI*************@TK2MSFTNGP09.phx.gbl...
This is a Web-based app? Or did you write a component in C# or something?
You have a Web server that doesn't have constant access to the Internet?
I suggest asking in a C# group.
Ray at work
"Dan Sikorsky" <ds****@gte.net> wrote in message
news:%2****************@TK2MSFTNGP10.phx.gbl...I can send email using C# and SMTP, but keep closing the connection
beforethe .eml file has left the Queue folder. The length of time the .eml file
stays in the Queue folder is dependent on the size of that file; big or
many attachments increases the time.
If I start an internet connection, issue the smtp mail send and then
close the connection in my C# program, I need to wait until the .eml file has
left the Queue folder. Otherwise, prematurely closing the internet
connection causing IIS to abort the send.
How can I detect that the .eml file has left the Queue folder?
--
Dan Sikorsky, MSCS BSCE BAB