Converter.ConvertToMsg

Converter.ConvertToMsg method

Converts an email message to MSG format.

public static Task ConvertToMsg(Stream input, string nameWithExtension, IOutputHandler handler)
ParameterTypeDescription
inputStreamThe email input stream.
nameWithExtensionStringOriginal file name.
handlerIOutputHandlerOutput handler that will receive the .msg file.

Return Value

A completed task.

Examples

using var input = File.OpenRead("message.eml");
var handler = new FolderOutputHandler("C:\\Output");
await Converter.ConvertToMsg(input, "message.eml", handler);

See Also