Classic ASP
Classic ASP
Demonstrates how to call AddPfxSourceData for an Email Object
Demonstrates how to call AddPfxSourceData for an Email ObjectChilkat Classic ASP Downloads
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
</head>
<body>
<%
success = 0
set fac = Server.CreateObject("Chilkat.FileAccess")
pfxBytes = fac.ReadEntireFile("qa_data/pfx/some.pfx")
set email = Server.CreateObject("Chilkat.Email")
success = email.AddPfxSourceData(pfxBytes,"PFX_PASSWORD")
If (success <> 1) Then
Response.Write "<pre>" & Server.HTMLEncode( email.LastErrorText) & "</pre>"
Response.End
End If
Response.Write "<pre>" & Server.HTMLEncode( "Success.") & "</pre>"
%>
</body>
</html>