MIMESetPartProperty(Key,PropertyName,PropertyValue);
Key
A key returned from a previous MIMEAddPart call.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
This script function is used to specify additional options for parts added by a previous MIMEAddPart call.
0 -1 -2 -3 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 |