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 6762779
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 26, 20262026-05-26T14:23:53+00:00 2026-05-26T14:23:53+00:00

I have a main application in asp.net. There I have an option to send

  • 0

I have a main application in asp.net.
There I have an option to send mail via SMTP. I want to make a separate mail sending process. That means if I click on SEND MAIL button, the mail should be sent from background without affecting the application (Like separate service). I have tried using separate thread and its working fine but is there any possibility to make separate mail sending process without affecting the main application. If I close the application (app pool), then also it should send the mail.

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-26T14:23:53+00:00Added an answer on May 26, 2026 at 2:23 pm

    Implement the mail sending logic as a Windows Service and use IPC (for example shared memory via Mutex and MemoryMappedFile) to communicate between your ASP.NET app and the Windows Service.

    This has the benefit that the mail sending logic runs as long as the machine is up… if you need persistence (for example to remember unsent messages after a reboot) you can use a DB or the filesystem…

    EDIT – much easier option:

    Setup an SMTP Pickup folder in IIS (it has this option built-in!) and configure your ASP.NET app accordingly (see for example http://www.singular.co.nz/blog/archive/2007/11/28/using-an-smtp-pickup-directory-delivery-method-for-asp-net-development.aspx and http://www.singular.co.nz/blog/archive/2007/12/19/programmatically-setting-the-smtpclient-pickup-directory-location-at-runtime.aspx).

    This way your app saves the Mails as .eml files into the directory and IIS takes care of the rest (sending/resending/logging etc.). SmtpClient has the ability to work with pickup folder already built-in!

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

Sidebar

Related Questions

I have an ASP.NET application with a <codeSubDirectories> section in web.config. My main project
In an asp.net/c# application, I have an update panel on my main page. And
I am working on a web application (asp.net mvc3) I have a Main div.
I have a main application, and a bunch of sub-applications (they are separate apps,
I have a java main application, and I want to use log4j. I don't
So I have a UIViewController (main application controller is a TabBarController). On this there
I have an ASP.NET application which needs to search a VARCHAR(20) column using lists
We have an old asp.net application that has no unit tests, integration tests, component
We have an ASP.NET 3.5 application that has been in production for over a
I'm starting to develop a new ASP.NET MVC application, and I'd like to make

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.