Converter.ConvertToEml

Converter.ConvertToEml method

Converts an email message to EML format.

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

Return Value

A completed task.

Examples

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

See Also