473,320 Members | 1,976 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

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

HOWTO: Detect outgoing email has left 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?
--
Dan Sikorsky, MSCS BSCE BAB

Jan 23 '06 #1
3 2981
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 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?
--
Dan Sikorsky, MSCS BSCE BAB

Jan 23 '06 #2
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


Jan 23 '06 #3
1. Don't have a server that doesn't have a constant connection to the
Internet if it needs one.

2. Try asking in a C# console app group. This group is for classic ASP.

Ray at work

"Dan Sikorsky" <ds****@gte.net> wrote in message
news:Om*************@TK2MSFTNGP15.phx.gbl...
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 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?
>
>
> --
> Dan Sikorsky, MSCS BSCE BAB
>
>
>



Jan 23 '06 #4

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

8
by: R. Rajesh Jeba Anbiah | last post by:
Here is a nice code to detect utf-8 <http://in2.php.net/utf8_encode#39986> But, I couldn't find out the logic behind the script. If anyone knows that please share. Particularly I would like to...
1
by: Gernot Hillier | last post by:
-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 Hi! I'm the developer of a Linux ISDN application which uses embedded Python for controlling the communication. It starts several threads (i.e....
11
by: Matt | last post by:
I'm posting this question for one of my developers who's not quite as newsgroup-savvy. Any suggestions? The question follows, along with relevant source code. -Matt I have a templated...
8
by: Topper | last post by:
Hello. I have simple web folders structure: -ROOT - BIN WebService.dll WebService.asmx I need to use my WebService.dll not in bin folder - for example, in ROOT. How do i this? How can i do...
0
by: Dan Sikorsky | last post by:
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...
1
by: Benny Ng | last post by:
Dear All, Now I just finished my winform application. And a part of that is to send email reminder to the users. It's working fine in the server that with SMTP service in Windows 2003. But now...
8
by: BJ | last post by:
Problem: How can I code up a client side process to detect if the network is available? Synopsis: I am writing ASP.NET input forms for a Panasonic Tuff book. The users will be walking around...
0
by: AMDRIT | last post by:
Hello Every, Today I am exploring async operations. In my scenario, I have a windows form with a webbrowser control. The exercise reads a starting webpage and populates a Queue with additional...
5
by: Edgard Guilherme | last post by:
Hello all, b4 anything, i am using iis smtp to send the emails.. is there anyway to detect if the "To" email is a valid one ? Like for eg. To = sadjwqewe@askjqw.com (so this email of course...
0
by: ryjfgjl | last post by:
ExcelToDatabase: batch import excel into database automatically...
1
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, we are pleased to welcome back...
0
by: jfyes | last post by:
As a hardware engineer, after seeing that CEIWEI recently released a new tool for Modbus RTU Over TCP/UDP filtering and monitoring, I actively went to its official website to take a look. It turned...
0
by: ArrayDB | last post by:
The error message I've encountered is; ERROR:root:Error generating model response: exception: access violation writing 0x0000000000005140, which seems to be indicative of an access violation...
1
by: PapaRatzi | last post by:
Hello, I am teaching myself MS Access forms design and Visual Basic. I've created a table to capture a list of Top 30 singles and forms to capture new entries. The final step is a form (unbound)...
0
by: Defcon1945 | last post by:
I'm trying to learn Python using Pycharm but import shutil doesn't work
1
by: Shællîpôpï 09 | last post by:
If u are using a keypad phone, how do u turn on JavaScript, to access features like WhatsApp, Facebook, Instagram....
0
by: af34tf | last post by:
Hi Guys, I have a domain whose name is BytesLimited.com, and I want to sell it. Does anyone know about platforms that allow me to list my domain in auction for free. Thank you
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 3 Apr 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome former...

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.