Queue Email Messages

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • Sun

    Queue Email Messages

    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!

  • Himselff

    #2
    Re: Queue Email Messages

    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
    "Sun" <Sun@discussion s.microsoft.com > a écrit dans le message de news:
    47CDEE93-E717-4FA5-8273-54188B4C0419@mi crosoft.com...[color=blue]
    > 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!
    >[/color]


    Comment

    • Chad Z. Hower aka Kudzu

      #3
      Re: Queue Email Messages

      =?Utf-8?B?U3Vu?= <Sun@discussion s.microsoft.com > wrote in
      news:47CDEE93-E717-4FA5-8273-54188B4C0419@mi crosoft.com:[color=blue]
      > 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?[/color]

      You just have to wait and try again later.


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

      Get your ASP.NET in gear with IntraWeb!

      Comment

      • Jay B. Harlow [MVP - Outlook]

        #4
        Re: Queue Email Messages

        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.Messagi ng 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...
        [color=blue]
        > When we use Outlook, the message is queued when the system is down and
        > sent
        > out when the system is back up.[/color]
        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

        "Sun" <Sun@discussion s.microsoft.com > wrote in message
        news:47CDEE93-E717-4FA5-8273-54188B4C0419@mi crosoft.com...[color=blue]
        > 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!
        >[/color]


        Comment

        Working...