<html>
<head>
<title>ASPSend mail example</title>
</head>
<body>
<%
'Getting (Requesting) the Session variables from Form on previous page
Session("FromName"
= Request("FromName"
Session("FromAddress"
= Request("FromAddress"
Session("Subject"
= Request("Subject"
Session("BodyText"
= Request("BodyText"
Set Mailer = Server.CreateObject("SMTPsvg.Mailer"
'Setting variables
Mailer.FromName = Session("FromName"
Mailer.FromAddress = Session("FromAddress"
'Mailer.RemoteHost = "smtpmail.activeisp.com"
'change here
'Mailer.AddRecipient "Webmaster Active ISP", "webmaster@domain.com"
**Mailer.RemoteHost = "abc.cisco.com"
**Mailer.AddRecipient "Webmaster Active ISP", "abci@cisco.com"
Mailer.Subject = Session("Subject"
Mailer.BodyText = Session("BodyText"
'Checking if mail sent ok, if not display error message
if Mailer.SendMail then
Response.Write "Mail sent..."
else
Response.Write "Mail send failure. Error was " & Mailer.Response
end if
'Abandoning session variables
Session.Abandon
%>
</body>
</html>
these are the codes i download from a site.
codes with ** is my codes.
and below is the error i got after i execute the codes:
Error Type:
Server object, ASP 0177 (0x800401F3)
Invalid ProgID. For additional information specific to this message please visit the Microsoft Online Support site located at:
Please help me.
<head>
<title>ASPSend mail example</title>
</head>
<body>
<%
'Getting (Requesting) the Session variables from Form on previous page
Session("FromName"
Session("FromAddress"
Session("Subject"
Session("BodyText"
Set Mailer = Server.CreateObject("SMTPsvg.Mailer"
'Setting variables
Mailer.FromName = Session("FromName"
Mailer.FromAddress = Session("FromAddress"
'Mailer.RemoteHost = "smtpmail.activeisp.com"
'change here
'Mailer.AddRecipient "Webmaster Active ISP", "webmaster@domain.com"
**Mailer.RemoteHost = "abc.cisco.com"
**Mailer.AddRecipient "Webmaster Active ISP", "abci@cisco.com"
Mailer.Subject = Session("Subject"
Mailer.BodyText = Session("BodyText"
'Checking if mail sent ok, if not display error message
if Mailer.SendMail then
Response.Write "Mail sent..."
else
Response.Write "Mail send failure. Error was " & Mailer.Response
end if
'Abandoning session variables
Session.Abandon
%>
</body>
</html>
these are the codes i download from a site.
codes with ** is my codes.
and below is the error i got after i execute the codes:
Error Type:
Server object, ASP 0177 (0x800401F3)
Invalid ProgID. For additional information specific to this message please visit the Microsoft Online Support site located at:
Please help me.