EwsUploadMessage Method (FolderId, MailMessage, Boolean)
Uploads MailBee's MailMessage into the specified folder on the MS Exchange server.

Namespace: MailBee.EwsMail
Assembly: MailBee.NET (in MailBee.NET.dll) Version: 12.4 build 677 for .NET 4.5
Syntax
public bool UploadMessage(
	FolderId id,
	MailMessage msg,
	bool isDraft
)

Parameters

id
Type: FolderId
The ID of the folder where to upload the message. Null reference (Nothing in Visual Basic) not allowed.
msg
Type: MailBee.MimeMailMessage
The mail message to be uploaded. Null reference not allowed.
isDraft
Type: SystemBoolean
If true, the message will be uploaded as draft; otherwise, as normal message.

Return Value

Type: Boolean
true if succeeded; otherwise, false.
Exceptions
ExceptionCondition
MailBeeExceptionAn error occurred and ThrowExceptions is true.
NotImplementedExceptionThe .NET runtime is .NET Core.
Remarks

To specify the folder by its name, first get its ID with FindFolderIdByShortName(FolderId, String) or FindFolderIdByFullName(String) method.

Note Note
This method is not implemented in .NET Core. Use UploadMessageAsync(FolderId, MailMessage, Boolean) instead.
See Also