web 2.0

How to use ASP & Mail Config CDO.Message

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

ShotDev Focus:
- ASP & Config CDO.Message

Solution

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

Solve Problem

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

ASP & Mail Config CDO.Message

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

ASP & Mail Config CDO.Message

Register Finish.
.
Example

asp_cdomessage.asp


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

Set myMail = Server.CreateObject("CDO.Message")

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

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

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

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

Screenshot

ASP & Mail Config CDO.Message

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

ASP & Mail Config CDO.Message

.
.
.
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.