aspNetEmail

EmailMessage.IMailSpoolDirectory Property

Sets or retrieves the spool directory, used by IPSwitch IMail mail server.

public string IMailSpoolDirectory {get; set;}

Remarks

For faster processing, set this property. If IMailSpoolDirectory is not set, aspNetEmail must check multiple locations in your system in an attempt to locate it.

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.IMailSpoolDirectory = "c:\\imail\\spool\\";
			msg.SendToIMailQueue();
		
[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.IMailSpoolDirectory = "c:\imail\spool\"
		msg.SendToIMailQueue()
		
		

See Also

EmailMessage Class | aspNetEmail Namespace