C# 클래스 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
파일 보기 프로젝트 열기: ferventcoder/presentations

Private Properties

프로퍼티 타입 설명
SetPickupDirectoryLocation void

공개 메소드들

메소드 설명
ConvertRelativeToAbsolutePickupDirectoryLocation ( ) : void

비공개 메소드들

메소드 설명
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.

메소드 상세

ConvertRelativeToAbsolutePickupDirectoryLocation() 공개 정적인 메소드

public static ConvertRelativeToAbsolutePickupDirectoryLocation ( ) : void
리턴 void