ImapUploadMessageAsync Method (MailMessage, String, String, String) |
Namespace: MailBee.ImapMailAssembly: MailBee.NET (in MailBee.NET.dll) Version: 12.5.0 build 687 for .NET 4.5
Syntax public Task<bool> UploadMessageAsync(
MailMessage msg,
string folderName,
string flags,
string dateTimeString
)
Public Function UploadMessageAsync (
msg As MailMessage,
folderName As String,
flags As String,
dateTimeString As String
) As Task(Of Boolean)
Parameters
- msg
- Type: MailBee.MimeMailMessage
A reference to the MailMessage object representing the message to be uploaded. - folderName
- Type: SystemString
The full name of the folder to upload the message to. - flags
- Type: SystemString
The string containing the message flags (in IMAP4 format) to be assigned to the message, or a null reference (Nothing in Visual Basic) to
set default flags at the discretion of the server. - dateTimeString
- Type: SystemString
The string containing datetime (in IMAP4 format) to be assigned to the INTERNALDATE attribute of the message
(the date of receiving the message by the server), or a null reference to let the server assign its current datetime value.
Return Value
Type:
TaskBooleanA task that represents the asynchronous operation. The value of
TResult parameter is
true if the method succeeds; otherwise,
false.
Exceptions See Also