Solved

Issue with aspMail?

Posted on 2004-09-25
6
859 Views
Last Modified: 2010-05-18
Hi,

This is the error I get on my website when using aspMail:

Server object error 'ASP 0177 : 8007007e'

Server.CreateObject Failed

/storeCustom.asp, line 78

8007007e

78:set mail=server.CreateObject("Persits.MailSender")

thw website is hosted by a 3rd pary web hosting, apparently the do not why this error is fired, me neither.



line 78:

set mail=server.CreateObject("Persits.MailSender")

if Err.number>0 then ConnDB.execute("insert into logerror (sessionID,descr,number,page) values ('"&session.SessionID&"','"&Err.description&"','"&Err.number&"','"&"storeCustom.asp"&"')")

mail.Host = "........"

if request.Form("email")="" then    'if Email field is empty
      mail.From="info@...."
      'Mail.FromName = "..."
      else
      mail.From= request.Form("email") 'else
      'Mail.AddReplyTo request.Form("email")
      
      'call sendMailBack(request.Form("email")) send mail to sender
      end if
      
mail.FromName=username

'Mail.Username = "info@''''''"
'Mail.Password = "'''''"



mail.AddAddress "...."
'mail.AddAddress "...."
mail.AddCC "...."

mail.Subject = "new catalog request"

strF="There is a new brochure request in the database. Ciao"&newline
strF=strF&"The contact details are: "&newline

'retrieve data again from form. We do not retrieve from DB in case there are connection problem

strN="Title: "&request.Form("title")&newline
strN=strN&"First Name: "&username&newline
strN=strN&"Last Name: "&request.Form("lname")&newline
strN=strN&"Address line1: "&request.Form("add1")&newline
strN=strN&"Address line2: "&request.Form("add2")&newline
strN=strN&"PostalCode: "&request.Form("pcode")&newline
strN=strN&"Town: "&request.Form("town")&newline
strN=strN&"Country: "&request.Form("country")&newline
strN=strN&"Phone: "&request.Form("phone")&newline
strN=strN&"Fax: "&request.Form("fax")&newline
strN=strN&"Mobile: "&request.Form("mobile")&newline
strN=strN&"E-Mail: "&request.Form("email")&newline



'response.Write(strN)
strF=strF&strN

mail.Body = strF        'send the body
mail.IsHTML = True

mail.Send      

if Err.number>0 then Conn.execute("insert into logerror (sessionID,descr,number,page) values ('"&session.SessionID&"','"&Err.description&"','"&Err.number&"','"&"storeCustom.asp"&"')")

set mail=nothing            
0
Comment
Question by:fra_ita
  • 5
6 Comments
 
LVL 46

Expert Comment

by:fritz_the_blank
ID: 12150220
If you have this error:

Server object error 'ASP 0177 : 8007007e'
Server.CreateObject Failed

for this line:

set mail=server.CreateObject("Persits.MailSender")

That usually means that ASPeMail is not installed! Perhaps the hosting company does not have the component installed on the exact server that you are on?

FtB


0
 
LVL 46

Expert Comment

by:fritz_the_blank
ID: 12150230
The other possibility is a permissions issue. Please see:

http://www.aspemail.com/faq.html

for details.

FtB
0
 
LVL 46

Accepted Solution

by:
fritz_the_blank earned 500 total points
ID: 12150234
One more relevant link--it references your error exactly:

http://support.persits.com/show.asp?code=PS02061296

Server object error 8007007e when calling Server.CreateObject  

Problem Description
When trying to create an instance of a Persits component, the line of code
Set obj = Server.CreateObject("Persits. <ProgID> ")

generates the following error:

Server object, ASP 0177 (0x8007007E)
8007007e

or

Server object error 'ASP 0177 : 8007007e'
Server.CreateObject Failed
8007007e

Solution
In most cases, this means that the component DLL has been deleted from the location on the server where it was originally registered, although the component has not been unregistered prior to deletion.
You should either reinstall the component by running the setup, or place the component DLL on the server and register it using the regsvr32 command-line utility, for example:

c:\>regsvr32 c:\path\aspupload.dll

(you must use your component's appropriate path and file name).

The correct Persits component ProgID's and file names are listed in the following table:

Name  File  ProgID  
AspEmail  aspemail.dll  "Persits.MailSender"  
AspEncrypt  aspencrypt.dll  "Persits.CryptoManager"  
AspGrid  aspgrid.dll  "Persits.Grid"  
AspJpeg  aspjpeg.dll  "Persits.Jpeg"  
AspUpload  aspupload.dll  "Persits.Upload"  
AspUser  aspuser.dll  "Persits.AspUser"  
XUpload  xupload.ocx  "Persits.XUpload"  
AspPDF  asppdf.dll  "Persits.PDF"  


Comments
This article applies to AspUpload, AspEmail, AspJpeg, AspGrid, AspEncrypt, AspUser, XUpload, and AspPDF.
 

0
6 Surprising Benefits of Threat Intelligence

All sorts of threat intelligence is available on the web. Intelligence you can learn from, and use to anticipate and prepare for future attacks.

 
LVL 46

Expert Comment

by:fritz_the_blank
ID: 12159568
I am glad to have helped, but any reason for the grade of B here? Did this not point you to the solution?

FtB
0
 

Author Comment

by:fra_ita
ID: 12163089
Sorry,
did not mean to underestimate your help... I think I am not familiar with the rating system.

I do not know if I can go back and change the rating or I will be fair next time....







0
 
LVL 46

Expert Comment

by:fritz_the_blank
ID: 12163133
I'll take care of it and thanks.

FtB
0

Featured Post

Better Security Awareness With Threat Intelligence

See how one of the leading financial services organizations uses Recorded Future as part of a holistic threat intelligence program to promote security awareness and proactively and efficiently identify threats.

Join & Write a Comment

I have helped a lot of people on EE with their coding sources and have enjoyed near about every minute of it. Sometimes it can get a little tedious but it is always a challenge and the one thing that I always say is:  The Exchange of information …
I was asked about the differences between classic ASP and ASP.NET, so let me put them down here, for reference: Let's make the introductions... Classic ASP was launched by Microsoft in 1998 and dynamically generate web pages upon user interact…
This video gives you a great overview about bandwidth monitoring with SNMP and WMI with our network monitoring solution PRTG Network Monitor (https://www.paessler.com/prtg). If you're looking for how to monitor bandwidth using netflow or packet s…
This demo shows you how to set up the containerized NetScaler CPX with NetScaler Management and Analytics System in a non-routable Mesos/Marathon environment for use with Micro-Services applications.

707 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

22 Experts available now in Live!

Get 1:1 Help Now