Since 4.0, System.Net.Mail.SmtpClient class is IDisposable. However, when disposed immediatelly after the Send method is called, InvalidOperationException "The SMTP host was not specified. " is thrown, even though DeliveryMethod property is set to SpecifiedPickupDirectory and there is no need to set SMTP server.Tested in context of web application.
Operating System Language
Steps to Reproduce