MailMessageLoadBodyTextAsync Method (String, MessageBodyType) |
Namespace: MailBee.MimeAssembly: MailBee.NET (in MailBee.NET.dll) Version: 12.5.0 build 687 for .NET 4.5
Syntax public Task<bool> LoadBodyTextAsync(
string filename,
MessageBodyType bodyType
)
Public Function LoadBodyTextAsync (
filename As String,
bodyType As MessageBodyType
) As Task(Of Boolean)
Parameters
- filename
- Type: SystemString
The absolute or relative path to the file containing the text to be imported. - bodyType
- Type: MailBee.MimeMessageBodyType
Denotes whether to load the data into HTML body or into plain-text body.
Return Value
Type:
TaskBooleanA task that represents the asynchronous operation.
The value of
TResult parameter is
true if the text was successfully imported; otherwise,
false.
Exceptions See Also