ASP - email sending in cdonts in asp - Asked By Naveen Kumar on 21-May-09 08:16 AM

Hi,

I am using below code to send email in asp using cdonts

<html>
<head>

<%

Set JMail = Server.CreateObject("JMail.SMTPMail")

JMail.ServerAddress = "66.98.208.234"

JMail.Sender = "ttttrrreee@yahoo.com"

JMail.Subject = "Sign-up acknowledgement..."

JMail.AddRecipientEx "sdfafds@gmail.com", "naveen"

 JMail.Body = "Thanks for signing up for our new online service!"

JMail.Execute

%>
</head>

<body>
testing email
</body>
</html>


but I am getting the error as

Server object, ASP 0177 (0x800401F3)
Invalid class string
/e3.asp, line 6



any body know what to do,

Thanks,
Naveen

re - Rao B replied to Naveen Kumar on 21-May-09 08:23 AM

1. Find all instances of your.dll on your hard drive.
2. Un-register all of them with c:\winnt\system32>regsvr32 [path]\your .dll
/u
3. Register all of them with c:\winnt\system32>regsvr32 [path]\s your .dll
4. Re boot

Server object, ASP 0177 (0x800401F3) Invalid class string - Naveen Kumar replied to Rao B on 21-May-09 08:39 AM

Hi Rao,

I have done what you have said,

but same error is coming

re - Rao B replied to Naveen Kumar on 21-May-09 08:59 AM

may be permission problem

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

check this link

http://forums.asp.net/t/1127066.aspx

error could occur for two reasons - H K replied to Naveen Kumar on 22-May-09 10:47 AM
This error could occur for two reasons:
1. component has not been registered on the server or the string passed to the Server.CreateObject method is misspelled.
2. On Windows 2003 and XP, it may also mean a permission problem on a system registry key.

Solution:
1.
Make sure the component DLL is present on the server.
Register the component on the server, open MS DOS prompt and type

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

2.On Windows 2003 and XP, this error may also mean the component's key in the system registry has been assigned insufficient permissions. Use regedt32 to give sufficient permission. Select Permissions from the Edit menu, and grant the "Everyone" account Full Control over the key.