ImapUploadMessageAsync Method (MailMessage, String, String, String)

Namespace: MailBee.ImapMail
Assembly: MailBee.NET (in MailBee.NET.dll) Version: 12.2.0 build 630 for .NET 4.5
public Task<bool> UploadMessageAsync(
	MailMessage msg,
	string folderName,
	string flags,
	string dateTimeString


Type: MailBee.MimeMailMessage
A reference to the MailMessage object representing the message to be uploaded.
Type: SystemString
The full name of the folder to upload the message to.
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.
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: TaskBoolean
A task that represents the asynchronous operation. The value of TResult parameter is true if the method succeeds; otherwise, false.
MailBeeExceptionAn error occurred and ThrowExceptions is true.
See Also