Forward Method

Forward a message.

Syntax

public func forward(id: String, messageHTML: String, toRecipients: String) throws -> Void

Remarks

This method can be used to quickly forward a message specified by id to the recipients specified by toRecipients. The toRecipients parameter accepts a comma separated list of emails to forward the message to. The messageHTML parameter is the message body to include with the forward. If messageHTML is an empty string, then the following properties are used:

PropertyDefault if not set
MessageBccBlank
MessageBodyContentBlank
MessageBodyContentTypeHTML
MessageCcBlank
MessageDeliveryReceiptFalse
MessageFromCurrently authenticated mailbox
MessageImportanceBlank
MessageReadReceiptFalse
MessageSubjectFW:" + original subject

Example (Simple):


        office365.Forward(messageId, "This is an email I am forwarding.", "someguy@gmail.com, notreal@nsoftware.com");

Example (Advanced):


        office365.MessageSubject = "Subject for the reply";
        office365.MessageImportance = "Low";
        office365.MessageCc = "Example@email.com";
        office365.MessageBcc = "Example@email.com";
        office365.MessageBodyContent = "Reply Message body";
        office365.Forward(messageId, "", "example@email.com, exampletwo@email.com");
This method forwards a message specified by id. toRecipients accepts a comma separated list of emails to forward the message to.

Example (Forwarding a Message to Two Addresses)


office365.Forward(messageId, "This is an email I am forwarding.", "someguy@gmail.com, notreal@nsoftware.com");

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