Solved

Error ASP mailsend: Please help.

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

Highfive + Dolby Voice = No More Audio Complaints!

Poor audio quality is one of the top reasons people don’t use video conferencing. Get the crispest, clearest audio powered by Dolby Voice in every meeting. Highfive and Dolby Voice deliver the best video conferencing and audio experience for every meeting and every room.

Join & Write a Comment

"In order to have an organized way for empathy mapping, we rely on a psychological model and trying to model it in a simple way, so we will split the board to three section for each persona and a scenario and try to see what those personas would Do,…
Any business that wants to seriously grow needs to keep the needs and desires of an international audience of their websites in mind. Making a website friendly to international users isn’t prohibitively expensive and can provide an incredible return…
The viewer will learn how to count occurrences of each item in an array.
The viewer will learn how to look for a specific file type in a local or remote server directory using PHP.

747 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

Need Help in Real-Time?

Connect with top rated Experts

12 Experts available now in Live!

Get 1:1 Help Now