OpenPop.NET POP3 Library Documentation

Message.Load(FileInfo) Method

Loads a Message from a file containing a raw email.

public static Message Load(
   FileInfo file


The File location to load the Message from. The file must exist.

Return Value

A Message with the content loaded from the file


Exception Type Condition
ArgumentNullException If file is a null reference
FileNotFoundException If file does not exist
Other exceptions relevant to a FileStream might be thrown as well

See Also

Message Class | OpenPop.Mime Namespace | Message.Load Overload List