Link to home
Start Free TrialLog in
Avatar of andla
andla

asked on

Error ASP mailsend: Please help.

What is missing.

*************This is the error message in explorer.****************
ASP Mailer Example 2
file: aspmail2.asp

Server object error 'ASP 0177:800401f3'

Server.CreateObject Failed

/aspappegoja/aspmail2.asp, line 12

The call to Server.CreateObject failed. The requested object instance cannot be created.

**************This is the code.********************
<html>

<head>
<title>ASP Mailer Example 2</title>
</head>

<body>

<p>ASP Mailer Example 2<br>
<br>
<%
strName = request.form("name")
strPhone = request.form("phone")
strAddress = request.form("address")
strEmail = request.form("email")
strComments = request.form("comments")

  Set Mailer = Server.CreateObject("SMTPsvg.Mailer")
  Mailer.FromName = strName
  Mailer.FromAddress = strEmail
  strMailHost = "mail.clark.net"
  Mailer.RemoteHost = strMailHost
  Mailer.AddRecipient "Webmaster", "andy@laken.com"
  Mailer.Subject = "Website Feedback"

  strBody = "Website Feedback " & now & vbCrLf & vbCrLf
  strBody = strBody & "Name: " & strName & vbCrLf
  strBody = strBody & "Phone: " & strPhone & vbCrLf
  strBody = strBody & "Address: " & strAddress & vbCrLf
  strBody = strBody & "email: " & strEmail & vbCrLf
  strBody = strBody & "Comments: " & vbCrLf & strComments & vbCrLf
  Mailer.BodyText = strBody

  if Mailer.SendMail then
    Response.Write "Thanks for filling out the feedback form!<br>"
  else
    Response.Write "We're sorry - there was a problem sending your mail . . .<br>"
'    Response.Write Mailer.Response
  end if
%></p>
</body>
</html>
Avatar of percyn
percyn

Make sure your NTFS permissions allow IUSR_servername (or whoever is using this object) to instiantiate it.
Avatar of andla

ASKER

Recently i discoverd to my disappointment that i did'n have ASPmail installed. Well my opinion is that this should be included in the package of ASP. Well it's not. Thats why it didnt work. The problem now is that this ASPmail cost money. The question to you Percyn or somebody, is how can i use something like ASPmail but for free?
ASKER CERTIFIED SOLUTION
Avatar of hkp
hkp
Flag of Denmark image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Well,
     ASPMail is a 3rd party Active Server Component and yes, it costs some money to register it. However, if you use IIS 4.0, it comes with an SMTP server and a SMTP component for free.
Avatar of andla

ASKER

But, you can built it by sending appropriate information  on a SMTP socket????