#g4msmail_forwardMail

*//////////////////////////////////////////////////////////////*

* #g4msmail_forwardMail - Forward an Email Message *

* *

* Output: *

* out_uniqueID - The ID of the email message (if successful).*

* out_errMsg - The error message (if error exists). *

* *

* Returns: *

* -1 for error, 0 for success *

* *

* Settable Variables ([r]=required) *

* id - Google ID [r] *

* message - The comment to add to the forwarded message. *

* message_id - The message/thread ID to apply to this email. *

* ccsid - The CCSID to use (1208) *

* debug - Turn on Debug (*NO, *YES) *

* debug_file - The debug file name. *

* (/tmp/g4g_[msgid]_forwardMail.txt) *

* *

*//////////////////////////////////////////////////////////////*

D #g4msmail_forwardMail...

D PR 10i 0

D out_uniqueID 24 Options(*NOPASS)

D out_errMsg 256 Options(*NOPASS)


#g4msmail_forwardMail is used to forward an existing email message using the G4MSMAIL functions. The #g4msmail_addRecipient() function should be used to create a list of email addresses to forward the email to. At this time MS only allow type "TO" email addresses, not CC or BCC.

Returns: 0 for success, -1 for error.

Optional Parameters:

  • Unique ID (output) - The ID of the email message that was sent.

  • Error Message (output) - Error message

Settable Values:

  • id (required) - Specify the ID of the Microsoft Office 365 account

  • message (optional) - This will be used as a forwarding message.

  • message_id (required) - Specify the MS email ID to forward.