方法是:
<%
Set Mail = Server.CreateObject("SomeCOMObject")
Set Mail = Nothing
%>
Run Code Online (Sandbox Code Playgroud)
同样如下:
<?php
$Mail = new COM("SomeCOMObject");
$Mail->Close(); // <---- Not sure about this
?>
Run Code Online (Sandbox Code Playgroud)