Queue Email Messages

  • Thread starter Thread starter Guest
  • Start date Start date
G

Guest

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!
 
Whitout queuing the email you can always add a validation , like

try
call code for sending the mail
catch exeption
start timer and call retry
end try

Would keep in memory the email, of course it depend on the volume of email
your managing trough there but it might be an option !

Good Luck !

Him
 
=?Utf-8?B?U3Vu?= said:
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?

You just have to wait and try again later.


--
Chad Z. Hower (a.k.a. Kudzu) - http://www.hower.org/Kudzu/
"Programming is an art form that fights back"

Get your ASP.NET in gear with IntraWeb!
http://www.atozed.com/IntraWeb/
 
Sun,
Depending on the nature of the emails, the nature of the unavailable server,
the nature of your app, and the nature of your organization: you could use
MSMQ (System.Messaging namespace) to queue the emails, then have a MSMQ app
that reads the queue & sends the emails when the server is back... I would
consider running the MSMQ app on a central app server, and the client simply
write to the remote queue, if the MSMQ app is down, MSMQ will wait until it
was back up to deliver the messages... Running the MSMQ app on a central
server would allow other apps in your organization use of the same service
(SOA = Service Oriented Application).

Alternatively you could (with code) setup alternate email servers & try an
alternative is the primary is done...
When we use Outlook, the message is queued when the system is down and
sent
out when the system is back up.
Outlook uses a PST or OST file & is able to work offline, it stores "queues"
the messages in its OutBox until it is connected to a server to transmit the
emails...

Hope this helps
Jay
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Similar Threads


Back
Top