Wednesday, June 3, 2009

How to test your workflow emails on a VM

I don't really want to install a mail server on my VM just to be able to test the emails that my Workflows generate. Instead you can do this in your web.config:

<system.net>
<mailSettings>
<smtp deliveryMethod="SpecifiedPickupDirectory">
<specifiedPickupDirectory pickupDirectoryLocation="c:\IncomingEmails\" />
</smtp>
</mailSettings>
</system.net>



ref: http://msdn.microsoft.com/en-us/library/ms164241.aspx

No comments: