473,383 Members | 1,870 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,383 software developers and data experts.

Queue Email Message

Sun
If the email server goes down, I won't be able to send messages using
SmtpMail. I'll get a "Could not Access CDO.Message ..." error. Is there a way
to queue the message so that it can be sent out when the system is back
running?

When we use Outlook, the message is queued when the system is down and sent
out when the system is back up.

Thanks!
Nov 16 '05 #1
1 1256
Sun,

That's not to difficult to do. Basically, when you get an error trying
to send, catch it, and store it in a collection somewhere. Then, have a
timer go off and process the items in the queue to see if the server came
back up, or it is successful.

There is no built-in way to do this however.

Hope this helps.
--
- Nicholas Paldino [.NET/C# MVP]
- mv*@spam.guard.caspershouse.com

"Sun" <Su*@discussions.microsoft.com> wrote in message
news:9D**********************************@microsof t.com...
If the email server goes down, I won't be able to send messages using
SmtpMail. I'll get a "Could not Access CDO.Message ..." error. Is there a
way
to queue the message so that it can be sent out when the system is back
running?

When we use Outlook, the message is queued when the system is down and
sent
out when the system is back up.

Thanks!

Nov 16 '05 #2

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

Similar topics

5
by: JC | last post by:
Hello all, I was wondering if someone can give me some tips on this problem. I'm trying to take content of a queue (Xqueue) and copy it into another queue (Yqueue) I tried using a while...
6
by: Chris Foster | last post by:
I am trying to implement a very fast queue using SQL Server. The queue table will contain tens of millions of records. The problem I have is the more records completed, the the slower it gets....
4
by: Robert Rossney | last post by:
I'm trying to send and receive XmlDocument objects using the System.Messaging.dll functions. The code I've written follows, as best I can tell, the methodology used in the sample code for the...
2
by: deepak | last post by:
-- bfgbcbcxvbcxbcxvbcxbxcbxcbcfdsgsdgfsdgx
6
by: James Radke | last post by:
Hello, I have a multithreaded windows NT service application (vb.net 2003) that I am working on (my first one), which reads a message queue and creates multiple threads to perform the processing...
3
by: Sun | last post by:
If the email server goes down, I won't be able to send messages using SmtpMail. I'll get a "Could not Access CDO.Message ..." error. Is there a way to queue the message so that it can be sent out...
3
by: Dan Sikorsky | last post by:
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...
13
by: Jonathan Amsterdam | last post by:
I think there's a slight design flaw in the Queue class that makes it hard to avoid nested monitor deadlock. The problem is that the mutex used by the Queue is not easy to change. You can then...
3
by: O.B. | last post by:
Is there a feature in C# .NET Professional's IDE where I can view the pending operations in the event queue during a breakpoint?
5
by: Craig Buchanan | last post by:
I would like to monitor a POP3 mailbox with multiple clients. However, I want to ensure that each message is processed by only one client. In essence, I would like to treat a POP3 mailbox like a...
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...
0
by: ryjfgjl | last post by:
In our work, we often need to import Excel data into databases (such as MySQL, SQL Server, Oracle) for data analysis and processing. Usually, we use database tools like Navicat or the Excel import...
0
by: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...

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.