Classic ASP
Classic ASP
MIME Advanced CMS and Compatibility Option Properties
See more MIME Examples
Demonstrates advanced option properties: CmsOptions (a JSON string of advanced CMS/PKCS #7 signing and validation options), UnwrapExtras (whether UnwrapSecurity adds informative header fields describing removed security layers), and UncommonOptions (an option string for uncommon compatibility requirements).
Background. These properties adjust behavior only in specialized situations. Their defaults (empty CmsOptions, UnwrapExtras enabled, empty UncommonOptions) are correct for normal use; UncommonOptions in particular should be set only when directed by support.
Chilkat Classic ASP Downloads
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
</head>
<body>
<%
success = 0
set mime = Server.CreateObject("Chilkat.Mime")
success = mime.SetBodyFromPlainText("Message body.")
If (success = 0) Then
Response.Write "<pre>" & Server.HTMLEncode( mime.LastErrorText) & "</pre>"
Response.End
End If
' CmsOptions is a JSON string of advanced CMS/PKCS #7 signing and validation options. The default
' is an empty string, which selects normal behavior. An empty JSON object {} is also valid.
mime.CmsOptions = "{}"
' UnwrapExtras controls whether UnwrapSecurity adds informative header fields describing the
' security layers it removed. The default is 1.
mime.UnwrapExtras = 1
' UncommonOptions is a semicolon-delimited option string for uncommon compatibility requirements.
' Normal applications should leave it empty, and it should only be used when directed by support.
mime.UncommonOptions = ""
Response.Write "<pre>" & Server.HTMLEncode( "CmsOptions = " & mime.CmsOptions) & "</pre>"
Response.Write "<pre>" & Server.HTMLEncode( "Advanced options configured.") & "</pre>"
%>
</body>
</html>