Solved

Issue with aspMail?

Posted on 2004-09-25
6
862 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
Gigs: Get Your Project Delivered by an Expert

Select from freelancers specializing in everything from database administration to programming, who have proven themselves as experts in their field. Hire the best, collaborate easily, pay securely and get projects done right.

 
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

Live: Real-Time Solutions, Start Here

Receive instant 1:1 support from technology experts, using our real-time conversation and whiteboard interface. Your first 5 minutes are always free.

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
Determining if Request.Form is empty 1 47
Live mode in DW, need to creae Session 4 92
Summernote required 3 136
rebind a grid after user clicks on node in treeview 1 34
I recently decide that I needed a way to make my pages scream on the net.   While searching around how I can accomplish this I stumbled across a great article that stated "minimize the server requests." I got to thinking, hey, I use more than one…
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…
This is used to tweak the memory usage for your computer, it is used for servers more so than workstations but just be careful editing registry settings as it may cause irreversible results. I hold no responsibility for anything you do to the regist…
Two types of users will appreciate AOMEI Backupper Pro: 1 - Those with PCIe drives (and haven't found cloning software that works on them). 2 - Those who want a fast clone of their boot drive (no re-boots needed) and it can clone your drive wh…

813 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