aspNetEmail

EmailMessage.MSPickupDirectory Property

Sets or retrieves the pickup directory for Microsoft's queue directory.

public string MSPickupDirectory {get; set;}

Remarks

To increase performance, set this property to the mailroot\pickup directory of your machine. If this property is not set, aspNetEmail must attempt to locate the mailroot directory.

Example

[C#]
			EmailMessage msg = new EmailMessage( );
			msg.FromAddress = "me@MyCompany.com";
			msg.To = "you@YourCompany.com";
			msg.Subject = "Daily Newsletter";
			msg.Body = "Here is our daily newsletter.....";
			msg.MSPickupDirectory = "c:\\inetpub\\mailroot\\pickup\\";
			msg.SendToMSPickup();
			
[Visual Basic]
			Dim msg As New EmailMessage()
			msg.FromAddress = "me@MyCompany.com"
			msg.To = "you@YourCompany.com"
			msg.Subject = "Daily Newsletter"
			msg.Body = "Here is our daily newsletter....."
			msg.MSPickupDirectory = "c:\inetpub\mailroot\pickup\"
			msg.SendToMSPickup()
			

See Also

EmailMessage Class | aspNetEmail Namespace