Knowledgebase: Programming Questions
How to Test CDOSYS Form to Email is Working
Posted by Tan Fang Wai (Import) on 03 February 2009 06:46 PM
You can test if the server is working by using the below lines and copy into an asp file:

<%
Dim MyMail
Set MyMail = CreateObject("CDO.Message")
MyMail.From = "xxx@xxx.xxx"
MyMail.To = "xxx@xxx.xxx"
MyMail.Subject = "Test message using CDOSYS"
MyMail.TextBody ="This is a test email message" & vbcrlf & "sent with CDOSYS"
MyMail.Send
Set MyMail= nothing
Response.Write("Your e-mail has been sent")
%>

Modify the MyMail.From and MyMail.To to your own values.
(667 vote(s))
This article was helpful
This article was not helpful

Comments (0)
Post a new comment
 
 
Full Name:
Email:
Comments:
CAPTCHA Verification 
 
Please enter the text you see in the image into the textbox below. This is required to prevent automated registrations and form submissions.

Help Desk Software by Kayako Resolve