MailMessageGetHtmlAndSaveRelatedFilesAsync Method (String, VirtualMappingType, MessageFolderBehavior)

Namespace: MailBee.Mime
Assembly: MailBee.NET (in MailBee.NET.dll) Version: 12.4 build 677 for .NET 4.5
Syntax
public Task<string> GetHtmlAndSaveRelatedFilesAsync(
	string virtualPath,
	VirtualMappingType mappingType,
	MessageFolderBehavior folderMode
)

Parameters

virtualPath
Type: SystemString
The virtual path to the MailMessage.Parser.WorkingFolder of the message. If mappingType is NonWeb, this parameter value is ignored, and the developer can leave it a null reference (Nothing in Visual Basic).
mappingType
Type: MailBee.MimeVirtualMappingType
The mode of mapping physical paths to virtual paths.
folderMode
Type: MailBee.MimeMessageFolderBehavior
Specifies whether to create and use a unique message folder in the MailMessage.Parser.WorkingFolder.

Return Value

Type: TaskString
A task that represents the asynchronous operation. The value of TResult parameter is a string containing the HTML body which is altered in such a way so that all Content-ID references (cid:) are replaced with paths to the related files as they were saved by this method.
Exceptions
ExceptionCondition
MailBeeInvalidArgumentExceptionvirtualPath is a null reference (Nothing in Visual Basic) and mappingType is not NonWeb.
MailBeeExceptionAn error occurred and ThrowExceptions is true.
See Also