web 2.0

How to use ASP & Mail Config CDONTS.NewMail

How to use ASP & Mail Config CDONTS.NewMail This is learn/tutorial asp developers how to using asp and config CDONTS component for send mail .

ShotDev Focus:
- ASP & Config CDONTS.NewMail

Solution

Error Type:
Server object, ASP 0177 (0×800401F3)
Invalid class string

Solve Problem

Step 1 Copy cdonts.dll to C:\WINDOWS\system32

ASP & Mail Config CDONTS.NewMail

Step 2 Start -> Run -> and Register DLL regsvr32 C:\WINDOWS\system32\cdonts.dll

ASP & Mail Config CDONTS.NewMail

Register Finish.
.
Example

asp_cdonts.asp


<html>
<head>
<title>ShotDev.Com Tutorial</title>
</head>
<body>
<%
Dim myMail

Set myMail = Server.CreateObject("CDONTS.NewMail")

If IsObject(myMail) Then
Response.write("CDONTS Connected")
Else
Response.write("Cannot Connect to CDONTS")
End If

Set myMail = Nothing
%>
</body>
</html>

Create a asp file and save to path root-path/myasp/

Run
http://localhost/myasp/asp_cdonts.asp

Screenshot

ASP & Mail Config CDONTS.NewMail

if have a mail out going will be create message queue.

ASP & Mail Config CDONTS.NewMail

.
.
.
Download this script.
Download

1 Star2 Stars3 Stars4 Stars5 Stars6 Stars7 Stars8 Stars9 Stars10 Stars (1 votes, average: 1.00 out of 10)
Loading ... Loading ...

Leave a Reply

You must be logged in to post a comment.