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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 10, 20262026-05-10T16:47:41+00:00 2026-05-10T16:47:41+00:00

How can I test sending email from my application without flooding my inbox? Is

  • 0

How can I test sending email from my application without flooding my inbox?

Is there a way to tell IIS/ASP.NET how to deliver email to a local folder for inspection?

  • 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. 2026-05-10T16:47:42+00:00Added an answer on May 10, 2026 at 4:47 pm

    Yes there is a way.

    You can alter web.config like this so that when you send email it will instead be created as an .EML file in c:\LocalDir.

        <configuration>        <system.net>           <mailSettings>              <smtp deliveryMethod='SpecifiedPickupDirectory'>                 <specifiedPickupDirectory pickupDirectoryLocation='c:\LocalDir'/>              </smtp>           </mailSettings>        </system.net>     </configuration> 

    You can also create an instance of the SmtpClient class with these same settings, if you don’t want to/can’t change the web.config. In C# that looks something like this:

    var smtpClient = new SmtpClient(); smtpClient.DeliveryMethod = SmtpDeliveryMethod.SpecifiedPickupDirectory; var emailPickupDirectory = HostingEnvironment.MapPath('~/EmailPickup'); if (!Directory.Exists(emailPickupDirectory)) {      Directory.CreateDirectory(emailPickupDirectory) } smtpClient.PickupDirectoryLocation = emailPickupDirectory; 
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

How can I test SMTP is up and running via C# without sending a
Is there a way I can test if there are any other activities in
I am wondering is there any way we can test the font size/color of
Is there a page similar to JSbin where I can test HTML and CSS
Can I test my client side GWT code without GWTTestCase? I've heard somewhere (I
I have a ASP.NET Application that add data to a DataBase and get data
I am having trouble sending email from my app at Google App Engine. I
I wrote a small Java command line program to test sending emails from a
I tried to automate sending email from Gmail (https://accounts.google.com/ServiceLogin?service=mail&passive=true&rm=false&continue=http://mail.google.com/mail/&scc=1&ltmpl=default&ltmplcache=2) by using Selenium WebDriver with
I'm developing a php application and need to test the functionality of sending emails.

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.