Solved

Error ASP mailsend: Please help.

Posted on 1998-04-22
5
243 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

Independent Software Vendors: We Want Your Opinion

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

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

FAQ pages provide a simple way for you to supply and for customers to find answers to the most common questions about your company. Here are six reasons why your company website should have a FAQ page
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…
This video teaches users how to migrate an existing Wordpress website to a new domain.
The viewer will learn how to count occurrences of each item in an array.

734 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