471,306 Members | 1,392 Online
Bytes | Software Development & Data Engineering Community
Post +

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 471,306 software developers and data experts.

HOWTO: Detect outgoing SMTP mail has left the Queue folder.

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.

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.

I can send email using C# and SMTP, but keep closing the connection before
the .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?
Jan 23 '06 #1
0 1948

This discussion thread is closed

Replies have been disabled for this discussion.

Similar topics

4 posts views Thread by Shawn Zheng | last post: by
1 post views Thread by Srinivas | last post: by
2 posts views Thread by Al Wilkerson | last post: by
34 posts views Thread by antonyliu2002 | last post: by
11 posts views Thread by ibiza | last post: by
reply views Thread by rosydwin | last post: by

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.