C# Class DropkicKExample.infrastructure.configuration.MailSettingsSmtpFolderConverter

Converts a smtp folder relative path to an absolute
Based on http://www.singular.co.nz/blog/archive/2007/12/19/programmatically-setting-the-smtpclient-pickup-directory-location-at-runtime.aspx
显示文件 Open project: ferventcoder/presentations

Private Properties

Property Type Description
SetPickupDirectoryLocation void

Public Methods

Method Description
ConvertRelativeToAbsolutePickupDirectoryLocation ( ) : void

Private Methods

Method Description
SetPickupDirectoryLocation ( ) : void

Sets the default PickupDirectoryLocation for the SmtpClient.

This method should be called to set the PickupDirectoryLocation for the SmtpClient at runtime (Application_Start) Reflection is used to set the private variable located in the internal class for the SmtpClient's mail configuration: System.Net.Mail.SmtpClient.MailConfiguration.Smtp.SpecifiedPickupDirectory.PickupDirectoryLocation The folder must exist.

Method Details

ConvertRelativeToAbsolutePickupDirectoryLocation() public static method

public static ConvertRelativeToAbsolutePickupDirectoryLocation ( ) : void
return void