Solved

Issue with aspMail?

Posted on 2004-09-25
6
865 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
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.

 
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

Free Tool: Path Explorer

An intuitive utility to help find the CSS path to UI elements on a webpage. These paths are used frequently in a variety of front-end development and QA automation tasks.

One of a set of tools we're offering 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

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…
With Secure Portal Encryption, the recipient is sent a link to their email address directing them to the email laundry delivery page. From there, the recipient will be required to enter a user name and password to enter the page. Once the recipient …
The Email Laundry PDF encryption service allows companies to send confidential encrypted  emails to anybody. The PDF document can also contain attachments that are embedded in the encrypted PDF. The password is randomly generated by The Email Laundr…

839 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