ASP mailer error : Server.CreateObject Failed
Error on windows 2008
Server object error ‘ASP 0177 : 800401f3′
Server.CreateObject Failed 800401f3
Solution
the ASPMail component is NOT supported on Windows 2008 You will need to use the System.Net.Mail Component for .net. I pasted some sample code to get you started below. Please be advised that this sample will need to be modified some.
<%@ Import Namespace="System.Net.Mail"%>
<script language="VBScript" Debug="true" runat="server">
sub Page_Load()
Dim oMsg As New MailMessage()
oMsg.From = New MailAddress("mailbox@yourdomain.com")
oMsg.To.Add("recipient@theirdomain.com")
oMsg.Subject = "This is an email"
oMsg.Body = "<HTML><BODY>Hello World!</BODY></HTML>"
Dim smtp As New SmtpClient("scriptmail.yourdomain.com")
smtp.Send(oMsg)
oMsg = Nothing
end sub
</script>
More information on this component can be found at http://www.systemnetmail.com/
