Cloud Mail 2020 Kotlin Edition

Questions / Feedback?

CreateDraft Method

Creates a new email draft.

Syntax

public fun createDraft()

Remarks

This method creates a new draft in the Drafts folder. The created message's information is also added to the MessageInfo property.

Example


gmail.MessageSubject = "I saw a Tree";
gmail.MessageImportance = "High";
gmail.MessageBodyContentType = "TEXT";
gmail.MessageBodyContent = "It was in my back yard initially. It was still there when I last checked.";
gmail.MessageTo = "TreeLookOut@gmail.com";

gmail.CreateDraft();

Copyright (c) 2021 /n software inc. - All rights reserved.
Cloud Mail 2020 Kotlin Edition - Version 20.0 [Build 7941]