Waiting for engine...
Skip to main content

Messaging methods

MsgGetStorage

Returns information on the location where the message should be stored in MFT FS site.

FTHMsgStorageData  
MsgGetStorage(Guid sessionID, string msgSubject, FTHAuxFileData[] auxFiles)
Parameter NameDescription
sessionIDUser session returned by one of Open functions
msgSubjectIf a message contains local attachments MFT FS server creates a subfolder under Outbox root. First 50 characters of subject are used and versioning is applied if needed.
auxFilesList of auxiliary files to be added to the storage. The method will return a subset of these files in the FTHMsgStorageData result, within the MissingAuxFiles property. This subset will contain only the files that are missing in the server and, therefore, need to be uploaded.

MsgGetStorageByType

Returns information on the location where the message should be stored in MFT FS site.

FTHMsgStorageData  
MsgGetStorageByType(Guid sessionID, string msgSubject, FTHAuxFileData[] auxFiles, int type, string tag1, string tag2, string tag3)
Parameter NameDescription
sessionIDUser session returned by one of Open functions
msgSubjectIf a message contains local attachments MFT FS server creates a subfolder under Outbox root. First 50 characters of subject are used and versioning is applied if needed.
auxFilesList of auxiliary files to be added to the storage. The method will return a subset of these files in the FTHMsgStorageData result, within the MissingAuxFiles property. This subset will contain only the files that are missing in the server and, therefore, need to be uploaded.
typeType=0 creates storage under Outbox root in the same way as current function MsgGetStorage() by user email, timestamp and subject Type=1 always returns location Outbox/Projects/tag1/path-tree-similar-to-current-GetMsgStorage().
tag1Tag to create subfolder for project name under Outbox/Projects
tag2Reserved for future use
tag3Reserved for future use

MsgCreate

Create the message on the server. For thin clients like web browsers email is sent by the server, for thick email clients a link to secure distribution is returned. Link will replace original attachments.

FTHMsgData  
MsgCreate (Guid sessionID, bool sendByClient, FTHMailPriority priority, string subject, string publicMessage, publicMessageIsHtml, string privateMessage, bool privateMessageIsHtml, bool requestLogin, DateTime dateExpired, bool notifyFlag, int maxDownloads, string[] toEmailList, string[] ccEmailList, string[] bccEmailList, int[] folderIDList, int[] fileIDList, int? auxFileSetID)
Parameter NameDescription
sessionIDUser session returned by one of Open functions
sendByClientTrue if the client is responsible to send the mail. False if the server sends it.
priorityMessage priority.
subjectMessage subject.
publicMessage Message body.
publicMessageIsHtmlTells the server if public message body is in HTML format, reserved for future use
privateMessagePrivate message body.
privateMessageIsHtmlTells the server if private message body is in HTML format, reserved for future use
requestLoginWhether the recipient will have to go through self password process.
dateExpiredMessage expiration date.
notifyFlagFlag that tells the server to send notifications when the files are downloaded or private message is read, ON by default.
maxDownloadsMaximal number of downloads for each file separately or as a package allowed to recipients. Value (-1) means unlimited downloads are allowed.
toEmailListArray of To recipient list
ccEmailListArray of Cc recipient list
bccEmailListArray of Bcc recipient list
folderIDListArray of attached folders
fileIDListArray of attached files
auxFileSetIDOptional field linking message embedded images

MsgValidate

Validate combination of parameters and policies for the email. Will return error and message with explanation if parameters/policies are incompatible.

FTHMsgValidationData  
MsgValidate(Guid sessionID, bool sendByClient, FTHMailPriority priority, bool isPrivateMessage, bool requestLogin, DateTime dateExpired, bool notifyFlag, int maxDownloads, int recipientCount, bool isAttachments)
Parameter NameDescription
sessionIDUser session returned by one of Open functions
sendByClientTrue if the client is responsible to send the mail. False if the server sends it.
priorityMessage priority.
isPrivateMessageIndicates whether the message has a private message body.
requestLoginWhether the recipient will have to go through self password process.
dateExpiredMessage expiration date.
notifyFlagFlag that tells the server to send notifications when the files are downloaded or private message is read, ON by default.
maxDownloadsReserved for future use.
recipientCountThe total number of the message recipients.
isAttachmentsIndicates whether the message contains (file or folder) attachments.

MsgDiscard

Discard message before it is sent. Discard deletes the message and attachments stored in in MFT FS site. Method should not be called after the message was sent since it invalidates the link to the files.

void MsgDiscard(Guid sessionID, int msgID)
Parameter NameDescription
sessionIDUser session returned by one of Open functions
msgIDMessage identifier.

MsgComplete

Mark message as complete after the message is discarded

void MsgComplete(Guid sessionID, int msgID)
Parameter NameDescription
sessionIDUser session returned by one of Open functions
msgIDMessage identifier.

MsgGetSentThruList

Returns a list of sent MFT FS messages

%(color-blue)FTHMsgData[] %  
MsgGetSentThruList(Guid sessionID, string searchValue, DateTime? startDate, DateTime? endDate, int? pagingLastMsgID, int pagingMsgLimit)
Parameter NameDescription
sessionIDUser session returned by one of Open functions
searchValueFilter messages contain either subject or tracking number or private or public message .
startDateFilter messages sent later than given date.
endDateFilter messages sent earlier than given date.
pagingLastMsgIDGive null for first page. Give last MsgID to get next page.
pagingMsgLimitLimit number of returned messages.

MsgGet

Retrieve the message object from the server

%(color-blue)FTHMsgData[] %  
MsgGet(Guid sessionID, int msgID)
Parameter NameDescription
sessionIDUser session returned by one of Open functions
msgIDMessage ID.

MsgDelete

Delete the message from the server

MsgDelete(Guid sessionID, int msgID)
Parameter NameDescription
sessionIDUser session returned by one of Open functions
msgIDMessage ID.

MsgDeleteFile

Detach the file from the message, file is not deleted from MFT FS file system

MsgDeleteFile(Guid sessionID, int msgID, int fileID)
Parameter NameDescription
sessionIDUser session returned by one of Open functions
msgIDMessage ID.
fileIDFile ID.

MsgDeleteFolder

Detaches the folder from the message, folder is not deleted from MFT FS file system

MsgDeleteFolder(Guid sessionID, int msgID, int folderID)
Parameter NameDescription
sessionIDUser session returned by one of Open functions
msgIDMessage ID.
folderIDFolder ID.

MsgExpire

Sets message expiration to certain date. Expired message cannot be accessed by any recipients.

MsgExpire(Guid sessionID, int[] msgIDList, DateTime utcDateExpired)
Parameter NameDescription
sessionIDUser session returned by one of Open functions
msgIDListList of Message ID to set expired date.
utcDateExpiredExpired Date to be set.

MsgExpireNow

Expires message immediately. Expired message cannot be accessed by any recipients.

MsgExpireNow(Guid sessionID, int[] msgIDList)
Parameter NameDescription
sessionIDUser session returned by one of Open functions
msgIDListList of Message ID to set expired date.

MsgDeleteRecipient

Delete a specific recipient from a message.

MsgDeleteRecipient(Guid sessionID, int recipientID)
Parameter NameDescription
sessionIDUser session returned by one of Open functions
recipientIDRecipient ID to delete.

MsgGetCount

Retrieves the count of messages for the current user.

MsgGetCount(Guid sessionID)
Parameter NameDescription
sessionIDUser session returned by one of Open functions
On this Page