This is a guest post by Albin Sunnanbo introducing a great hack to work with mails in test environments. If you have a .NET application that sends emails, this is probably something for you. TL;DR; PickupMailViewer is a simple web viewer for emails saved by the specifiedPickupDirectory SMTP setting in a .NET application. Download the… Continue reading Pickup Mail Viewer
Tag: Smtp
Send SmtpClient Mails to Disk
When developing a system that sends mails, often the mails shouldn’t be sent for real when testing. Instead they should be made available for investigation. Fortunately, that functionality is built in with the .NET SmtpClient. There is even no need to change the code. It’s just a matter of configuration. Add the following lines to… Continue reading Send SmtpClient Mails to Disk