Creates a new email draft.
Object Oriented Interface
public function doCreateDraft($drafttype, $id);
cloudmail_office365_do_createdraft($res, $drafttype, $id);
This method creates a new draft in the Drafts folder. The created message's information is also added to the MessageInfo property.
Valid values for DraftType :
When using DRAFTTYPE_REPLY, DRAFTTYPE_REPLYALL, or DRAFTTYPE_FORWARD the id parameter can be used to specify the message that is being replied to or forwarded. When using DRAFTTYPE_MESSAGE, pass in an empty string as the id.
office365.MessageSubject = "I saw a Tree"; office365.MessageImportance = "High"; office365.MessageBodyContentType = "TEXT"; office365.MessageBodyContent = "It was in my back yard initially. It was still there when I last checked."; office365.MessageTo = "TreeLookOut@gmail.com"; office365.CreateDraft(0, "");