Cloud Mail 2020 Android Edition

Questions / Feedback?

Update Method

Updates a message.

Syntax

public void update(String id);

Remarks

This property updates a message that has been edited in the MessageInfo collection. The id takes the message's ID that should be updated. The following values can be updated from the OLMessageInfo type:

Field Draft Only
Bcc False
BodyContent True
BodyContentType True
Cc False
FlagStatus False
From False
Importance False
isDeliveryReceiptRequested False
isRead False
isReadReceiptRequested False
JSON False
ReplyTo True
Subject True
To False

*Changing the JSON data will change the message as a whole.

Example (Reply Draft)


// Create the reply draft
string originalMessageId = "Message ID";
office365.CreateDraft(1, originalMessageId);

// Set the new draft MessageInfo fields with desired options
office365.MessageInfo[0].To = "email@example.com";
office365.MessageInfo[0].Subject = "Subject Text";
office365.MessageInfo[0].BodyContentType = "TEXT";
office365.MessageInfo[0].BodyContent = "Body Text";

// Update the draft
office365.Update(office365.MessageInfo[0].Id);

// Send the draft
office365.SendDraft(office365.MessageInfo[0].Id);

Copyright (c) 2022 /n software inc. - All rights reserved.
Cloud Mail 2020 Android Edition - Version 20.0 [Build 8308]