ActiveX component can't create object: 'CDO.Message'
m getting this error with following asp page
<%@ Language=VBScript %>
<HTML>
<HEAD>
<meta name="GENERATOR" Content="Microsoft Visual Studio .NET 7.1">
<script id=clientEventHandlersJS language=vbscript>
function Button1_onclick()
set myMail=CreateObject("CDO.Message")
myMail.Subject="Sending email with CDO"
myMail.From="
[email protected]"
myMail.To="
[email protected]"
myMail.HTMLBody = "<h1>This is a message.</h1>"
myMail.Send
set myMail=nothing
end function
</script>
</HEAD>
<body>
<DIV ms_positioning="GridLayout">
<TABLE height="408" cellSpacing="0" cellPadding="0" width="472" border="0" ms_2d_layout="TRUE">
<TR vAlign="top">
<TD width="64" height="64"></TD>
<TD width="408"></TD>
</TR>
<TR vAlign="top">
<TD height="344"></TD>
<TD><INPUT id="Button1" type="button" value="Button" name="Button1" onclick="Button1_onclick()"></TD>
</TR>
</TABLE>
</DIV>
</body>
</HTML>