Discuss this help topic in SecureBlackbox Forum
Attaches some data to the message.
Declaration
Parameters
- ContentType - type of the attachment in "type/subtype" format.
- FileName - specifies the name of the file that will contain the attachment.
- Stream - the stream from which the data must be read.
- DataSize - size of the data must be read from Stream in bytes.
- bMakeCopy - defines if the data is copied from the stream immediately:
True - the data will be copied;
False - the data will be cached and then loaded when it is necessary.
Default value is false.
- wsData - the string from which data must be read.
- Buffer - the buffer from which data must be read.
- Count - size of data must be read from the Buffer in bytes.
- Offset - starting offset in the buffer.
Description
Use this method when you need to attach some data to your message. You can take data from the stream, string or buffer.
If you use stream or buffer you can either make copy of the data or cache it and then load when it is necessary.
Whichever type of data source you use contents will be attached to the message as a file.
Use
FileName parameter to specify its name.
Discuss this help topic in SecureBlackbox Forum