Solved

Error ASP mailsend: Please help.

Posted on 1998-04-22
5
248 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 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

On Demand Webinar: Networking for the Cloud Era

Did you know SD-WANs can improve network connectivity? Check out this webinar to learn how an SD-WAN simplified, one-click tool can help you migrate and manage data in the cloud.

Question has a verified solution.

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

An enjoyable and seamless user experience can go a long way on an eCommerce site. While a cohesive layout and engaging copy play roles in creating a positive user experience, some sites neglect aspects that seem marginal but in actuality prove very …
Dramatic changes are revolutionizing how we build and use technology. Every company is automating, digitizing, and modernizing operations. We need a better, more connected way to work together as teams so we can harness the insights from our system…
The viewer will learn how to dynamically set the form action using jQuery.
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…

630 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