Classic ASP
Classic ASP
Load MIME Object from Email Object
See more Email Object Examples
Demonstrates how to load a Chilkat Mime object from a Chilkat Email object. (Copies the email into a Mime object.)Chilkat Classic ASP Downloads
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
</head>
<body>
<%
success = 0
set email = Server.CreateObject("Chilkat.Email")
success = email.LoadEml("qa_data/eml/sample.eml")
' Write the full MIME of the email to a StringBuilder.
set sbMime = Server.CreateObject("Chilkat.StringBuilder")
success = email.GetMimeSb(sbMime)
' Load the MIME object from the StringBuilder
set mime = Server.CreateObject("Chilkat.Mime")
success = mime.LoadMimeSb(sbMime)
Response.Write "<pre>" & Server.HTMLEncode( mime.GetMime()) & "</pre>"
%>
</body>
</html>