Showing posts with label Persits ASPEmail. Show all posts
Showing posts with label Persits ASPEmail. Show all posts

Sunday, 7 September 2008

Persits ASPEmail: Server object error 'ASP 0177 : 800401f3'

Problem Description

When trying to create an instance of a Persits component, the line of code

Set obj = Server.CreateObject("Persits. ")

generates the following error (Windows NT/IIS4)

Server object error 'ASP 0177 : 800401f3'
Server.CreateObject Failed
Invalid class string

On Windows 2000/IIS5, the error message is

Server object, ASP 0177 (0x800401F3)
Invalid ProgID.

Solution

This error means that either the component has not been registered on the server or the ProgID passed to the Server.CreateObject method is misspelled. On Windows 2003 and XP, it may also mean a permission problem on a system registry key.

Make sure the component DLL is present on the server. The exact physical location of the DLL is not important. To register the component on the server, open MS DOS prompt and type

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"

On Windows 2003 and XP, this error may also mean the component's ProgID key in the system registry has been assigned insufficient permissions. Run regedt32, open the key HKEY_CLASSES_ROOT\ProgID, select Permissions from the Edit menu, and grant the "Everyone" account Full Control over the key. See the table above for the correct ProgID values.

Thursday, 4 September 2008

Persits ASPEmail: Read Receipts

Mail.AddCustomHeader "Return-Receipt-To: "
Mail.AddCustomHeader "Disposition-Notification-To:

Wednesday, 28 May 2008

Persits ASPEmail: Email using an external Templates

<%
dim strTextBody
dim objMail
set objMail = Server.CreateObject("Persits.MailSender")
objMail.Host = "your mailhost"
objMail.From = "your_email@a.com"
objMail.AddAddress = "your_email@a.com"
objMail.Subject = "career fair"
objMail.IsHTML = True
' Add embedded image for logo
objMail.AddEmbeddedImage Server.MapPath(".") & "\banner.jpg", "_Banner"
objMail.AddEmbeddedImage Server.MapPath(".") & "\footer.gif", "_Footer"
' append body from file
objMail.AppendBodyFromFile Server.MapPath(".") & "\BODY.htm"
objMail.AltBody = strTextBody
objMail.Send

set objMail = nothing
%>

In your HTML file place the following code:

<HTML>
<HEAD>
<TITLE>CAREER FAIR</TITLE>
<STYLE>
body{margin:0px;}
table.content{width:600px;}
td.content{background:#CCE5FF;font-family:verdana;font-size:11px;padding-top:20px;padding-bottom:20px;padding-left:40px;padding-right:40px;}
</STYLE>
</HEAD>
<BODY>
<TABLE CELLPADDING="0" CELLSPACING="0" BORDER="0" CLASS="content">
<TR><TD><IMG SRC='cid:_BANNER'></TD></TR>
<TR><TD CLASS="content">
Hi
<P>Blah
<P>Kindest Regards
<BR><b>Blah</b>
<BR>Graduate Team
</TD></TR>
<TR><TD><IMG SRC='cid:_FOOTER'></TD></TR>
</TABLE>
</BODY>
</HTML>