Gets mail messages and attachments, deletes messages, and sets properties for messages on a Microsoft Exchange server. The cfexchangemail tag performs mail actions on an Exchange server that you cannot do using the cfmail tag.
The file path of the directory in which to put the attachments. If the directory does not exist, ColdFusion creates it. If you omit this attribute, ColdFusion does not save any attachments. If you specify a relative path, the path root is the ColdFusion temporary directory, which is returned by the GetTempDirectory function. (optional)
The name of the connection to the Exchange server, as specified in the cfexchangeconnection tag. If you omit this attribute, and you specify cfexchangeconnection tag attributes in this tag, ColdFusion creates a temporary connection. (optional)
The forward slash (/) delimited path, relative to the inbox, of the folder that contains the message or messages. The cfechangemail tag looks in the specified folder only, and does not search subfolders. If you omit this attribute, Exchange looks in the top level of the inbox. (optional)
A Boolean value specifying whether to generate unique file names if multiple attachments have the same file names. Case "yes": 3x myfile.txt -> myfile.txt, myfile1.txt, and myfile2.txt. (optional, default=no)
The case-sensitive UID of the mail message that contains the meeting request, response, or cancellation notification. You can use this attribute if there are multiple messages about a single meeting. (optional)
The case-sensitive UID of the meeting for which you received the notification. (required)
A reference to a structure that contains the properties to be set and their values. You must specify this attribute in number signs (#). (required)
The name of the ColdFusion query variable that will contain the returned mail messages or information about the attachments that were retrieved. (required)
The case-sensitive UIDs of the messages on which to perform the action. For the delete action, this attribute can be a comma delimited list of UID values. The getAttachments and set actions allow only a single UID value. (required)
The forward slash (/) delimited path, relative to the root of the mailbox, of the folder to which to move the message or messages.
Sample code using the cfexchangemail tag
Add an Example for: cfexchangemail
Use this form to create the Serialized JSON string needed to add an example into the docs.