Script functions reference > Script functions in alphabetical order > M > MIMESetPartProperty

MIMESetPartProperty
Syntax
MIMESetPartProperty(Key,PropertyName,PropertyValue);
Key
PropertyName
name – attachment name for the file to add as attachment.
content-type – content type of the MIME part.
cid – content ID of the MIME part. Alias for content-id.
content-id – content ID of the MIME part. Alias for cid.
codepage - code page for the attachment. If not set, "US-ASCII" will be used as codepage.
PropertyValue
Description
This script function is used to specify additional options for parts added by a previous MIMEAddPart call.
Returns
A number representing success or failure.
0
-1
-2
-3
Example
switch ($category)
{
 case "Gold":
  $key=MIMEAddPart("C:\att\gold.pdf", 0);
  MIMESetPartProperty($key, "name", "Special Offer");
 break;
 case "Silver":
  $key=MIMEAddPart("C:\att\silver.pdf", 0);
  MIMESetPartProperty($key, "name", "Special Offer");
 break;
 case "Bronze":
  $key=MIMEAddPart("C:\att\bronze.pdf", 0);
  MIMESetPartProperty($key, "name", "Special Offer");
 break;
 default:
  $key=MIMEAddPart("C:\att\standard.pdf", 0);
  MIMESetPartProperty($key, "name", "Special Offer");
}
OpenText StreamServe 5.6 Updated: 2013-03-01