Stmp Delivery Agent

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

    #1

    Stmp Delivery Agent

    I would like to create a Windows Service that receives Net.Mail.MailMe ssages
    from other applications through an API call (like Enqueue(mail As
    MailMessage). The mail would be added to the service's internal queue.
    When the service's timer fires, the messages would be delivered via the
    SmtpClient.
    I would consider using MSMQ, but I can't be sure that my ISP will support
    it.

    Questions:
    * I like the Queue class, but I'm concerned that a server crash would
    result in the loss of messages. Perhaps it would be best to persist the
    MailMessage class to a folder, then process the folders content when the
    timer fires. Is there a better mechanism?
    * I have two projects: a Windows Service and a Class Library (to add items
    to queue). Is there a better way to structure this?

    Any thoughts are appreciated.

    Thanks,

    Craig Buchanan


Working...