06 Sep 2010
Support Center
»
Knowledgebase
»
CDOSYS (formerly CDONTS)
CDOSYS (formerly CDONTS)
Solution
The CDOSYS mailing component is supported and recommended. Below is an example of how to use the mailing component in ASP:
Dim Subject, Body, SenderEmail, RecipientEmail, SMTPServer, SMTPusername, SMTPpassword
SenderEmail = "me@mydomain.tld"
RecipientEmail= "someone@somedomain.tld"
SMTPserver = "mail.mydomain.tld"
SMTPusername = "me@mydomain.tld"
SMTPpassword = "mypassword"
Subject = "Hello"
Body = "This is a test. Please ignore."
sch = "http://schemas.microsoft.com/cdo/configuration/"
Set cdoConfig = CreateObject("CDO.Configuration")
With cdoConfig.Fields
.Item(sch & "sendusing") = 2
.Item(sch & "smtpserver") = SMTPserver
.Item(sch & "smtpserverport") = 587
.Item(sch & "smtpauthenticate") = 1
.Item(sch & "sendusername") = SMTPusername
.Item(sch & "sendpassword") = SMTPpassword
.Item(sch & "smtpusessl") = False
.Item(sch & "connectiontimeout") = 100
.update
End With
Const cdoSendUsingPickup = "c:\inetpub\mailroot\pickup"
Set cdoMessage = CreateObject("CDO.Message")
With cdoMessage
Set .Configuration = cdoConfig
cdoMessage.From = SenderEmail
cdoMessage.To = RecipientEmail
cdoMessage.Subject = Subject
cdoMessage.TextBody = Body
cdoMessage.Send
End With
Set cdoMessage = Nothing
Set cdoConfig = Nothing
Article Details
Article ID:
7
Created On:
31 Jul 2005 11:39 AM
User Comments
Add a Comment
Sharing is good. So if you have a comment about this entry please feel free to share. The Comments might be reviewed by our Staff and might require approval before being posted. Questions posted will not be answered, please submit a ticket for support requests.
Image verification required
Please enter the characters that appear to the right in the space provided. This is just to verify that you are a human.
Fullname:
Email: (Optional)
Comments:
Back
Login
[Lost Password]
Email:
Password:
Remember Me:
Search
-- Entire Support Site --
Knowledgebase
Downloads
Troubleshooter
Article Options
Add Comment
Print Article
PDF Version
Email Article
Add to Favorites
Home
|
Register
|
Submit a Ticket
|
Knowledgebase
|
Troubleshooter
|
News
|
Downloads
Language:
English (U.S.)
Help Desk Software
Help Desk Software By Kayako SupportSuite v3.70.02