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. | |
|
Comments (0)