Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 4534166
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 21, 20262026-05-21T14:14:48+00:00 2026-05-21T14:14:48+00:00

We have a few issues with email that we’re looking to solve. If the

  • 0

We have a few issues with email that we’re looking to solve.

  • If the SMTP server is down, we’d like our batch jobs to queue the emails they create somewhere so we don’t have to rerun the jobs. What would be a good queuing system and how would you feed the emails from the queue to the SMTP server?
  • By default, when debugging, we don’t want emails to be sent. We’ve had a few cases when a developer unknowingly sent emails out to users while stepping through code. How can we prevent this from ever happening again?
  • Occasionally, a developer may need to run a batch job manually by attaching a debugger and stepping through code which points at production data. In this case, any email that gets sent by the batch job we’d like to be able to review before it actually gets sent. Is there an easy method of identifying these emails among all the emails being sent out and then pause the sending of the email long enough to review it?

All our code that sends email goes through a SendEmail() function. This could be refactored to have the emails queue up somewhere. We’d be willing to look at different SMTP servers, building a custom solution, or something else.

What advise can you give? Is there one solution that can handle these issues or a set of solutions? Thanks.

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-21T14:14:49+00:00Added an answer on May 21, 2026 at 2:14 pm

    We solved the unavailablity of the SMTP Server issue by using a try/catch – if the standard SMTP server isn’t available, we use the SMTP services provided by IIS by writing to the SMTP Pickup Directory as shown here:

    http://systemnetmail.com/faq/4.7.aspx

    It does what you’re looking for – writes the emails to a queue that will send when possible.

    Writing email to the IIS Server’s SMTP
    service pickup directory is another
    new feature of System.Net.Mail. The
    SMTP pickup directory is a special
    directory used by Microsoft’s SMTP
    service to send email. Any email files
    found in that directory are processed
    and delivered over SMTP. If the
    delivery process fails, the files are
    stored in a queue directory for
    delivery at another time. If a fatal
    error occurs (such as a DNS resolution
    error), the files are moved to the
    Badmail directory.

    This means, of course, ensuring that SMTP services are installed on the web server in question.

    This was much simpler than the route we intended to go down, which would have meant writing serialized emails somewhere (file system, database, etc) and then setting up a service to try to send them on a scheduled basis. We haven’t had any issues at all since we implemented this. That’s not a guarantee, but I’m just saying, it worked very nicely for us.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

Hi i am new to hibernate technology and i have few issues. Suppose if
I have a few issues with the following php functions (part of a bigger
I have a few routing issues with my ASP.NET MVC2 website and was wondering
We have few components like libraries dlls When initially created I ran the following
I have a few tables that I need to link together to get a
I have a few tables which I have joined together and would like to
I have few issues regarding when to use malloc or in this case strdup
Following up on a previous question , I have a few issues to resolve
I have an iPhone app that sends in app email (using MFMailComposeViewController) and SMS
I have seen a few posts regarding this issue but not one specific to

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.