MailMessageGetHtmlAndSaveRelatedFilesAsync Method (String, VirtualMappingType, MessageFolderBehavior) |
Namespace: MailBee.MimeAssembly: MailBee.NET (in MailBee.NET.dll) Version: 12.5.0 build 687 for .NET 4.5
Syntax public Task<string> GetHtmlAndSaveRelatedFilesAsync(
string virtualPath,
VirtualMappingType mappingType,
MessageFolderBehavior folderMode
)
Public Function GetHtmlAndSaveRelatedFilesAsync (
virtualPath As String,
mappingType As VirtualMappingType,
folderMode As MessageFolderBehavior
) As Task(Of String)
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:
TaskStringA 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 See Also