4AspNet POP3 .NET Component

EmailMessage.Parse Method

Creates an EmailMessage object from the specified string. Can be used to parse emails stored as text files.

Overload List

Creates an EmailMessage object from the specified string. Can be used to parse emails stored as text files.

public static EmailMessage Parse(string);

Creates an EmailMessage object from the specified string. Can be used to parse emails stored as text files.

public static EmailMessage Parse(string,bool);

Example

This sample shows how to use the Parse method

ForAspNet.POP3.License.LicenseKey = "<put license string here>";
StreamReader sr = new StreamReader(@"c:\\file.eml");
EmailMessage objEmail = EmailMessage.Parse(sr.ReadToEnd());
...

See Also

EmailMessage Class | ForAspNet.POP3 Namespace