Solved

Error ASP mailsend: Please help.

Posted on 1998-04-22
5
242 Views
Last Modified: 2013-12-25
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>
0
Comment
Question by:andla
  • 2
  • 2
5 Comments
 
LVL 3

Expert Comment

by:percyn
ID: 1853960
Make sure your NTFS permissions allow IUSR_servername (or whoever is using this object) to instiantiate it.
0
 
LVL 1

Author Comment

by:andla
ID: 1853961
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?
0
 
LVL 3

Accepted Solution

by:
hkp earned 50 total points
ID: 1853962
The offending line is:

  Set Mailer = Server.CreateObject("SMTPsvg.Mailer")

Either, the object class is not registered, or you have no access permissions to the object...

Try the following for more information about ASPMail:

   http://www.serverobjects.com/comp/Aspmail2.htm

About the free ASPMail, I can't find any. But, you can built it by sending appropriate information  on a SMTP socket.
0
 
LVL 3

Expert Comment

by:percyn
ID: 1853963
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.
0
 
LVL 1

Author Comment

by:andla
ID: 1853964
But, you can built it by sending appropriate information  on a SMTP socket????
0

Featured Post

Free Tool: SSL Checker

Scans your site and returns information about your SSL implementation and certificate. Helpful for debugging and validating your SSL configuration.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Password hashing is better than message digests or encryption, and you should be using it instead of message digests or encryption.  Find out why and how in this article, which supplements the original article on PHP Client Registration, Login, Logo…
There’s a good reason for why it’s called a homepage – it closely resembles that of a physical house and the only real difference is that it’s online. Your website’s homepage is where people come to visit you. It’s the family room of your website wh…
Any person in technology especially those working for big companies should at least know about the basics of web accessibility. Believe it or not there are even laws in place that require businesses to provide such means for the disabled and aging p…
The is a quite short video tutorial. In this video, I'm going to show you how to create self-host WordPress blog with free hosting service.

820 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question