0 votes

How can I load raw eml byte[] into email message?

by (760 points)

1 Answer

+1 vote

Use MailBuilder.CreateFromEml method:

byte[] eml = ...;
IMail email = new MailBuilder().CreateFromEml(eml);

You can also load from file directly :

IMail email = new MailBuilder().CreateFromEmlFile(@"c:\email.eml");
by (301k points)
...