Learning Curve…

SpecifiedPickupDirectory …

Posted on: May 31, 2011

During development there’s an easier way to handle mail sent by your application: drop it in a folder on your local hard drive directly. To do this, create a folder like C:TempMail. You need to create the folder yourself because it won’t be created automatically. Then configure the <smtp /> element in web.config as follows:

<smtp deliveryMethod=”SpecifiedPickupDirectory”>

<specifiedPickupDirectory pickupDirectoryLocation=”C:TempMail” />

</smtp>

With these settings in web.config, your messages are not sent over the network, but are dropped as physical files (with an .eml extension) in the folder you configured in the pickupDirectoryLocation attribute. You can read these files with mail clients like Windows Mail (on Vista) or Windows Live Mail (which you can download from the Internet.

Advertisements

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s

Author

Learning days (Calendar)

May 2011
M T W T F S S
« Mar   Jul »
 1
2345678
9101112131415
16171819202122
23242526272829
3031  

Knowledge Bank (Archives)

I am on Twitter

Blog Stats

  • 510,129 hits

Enter your email address to subscribe to this blog and receive notifications of new posts by email.

Join 43 other followers

%d bloggers like this: