Solved

Issue with aspMail?

Posted on 2004-09-25
6
869 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
[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
  • 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
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!

 
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

Technology Partners: 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

Suggested Solutions

Title # Comments Views Activity
Recordset containing single quotes 8 51
Record locking on classic ASP 3 58
Want an individual results display div 8 60
Making Table Thru ASP Response.write 5 35
I would like to start this tip/trick by saying Thank You, to all who said that this could not be done, as it forced me to make sure that it could be accomplished. :) To start, I want to make sure everyone understands the importance of utilizing p…
Have you ever needed to get an ASP script to wait for a while? I have, just to let something else happen. Or in my case, to allow other stuff to happen while I was murdering my MySQL database with an update. The Original Issue This was written…

739 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