My Little Help Desk - ASP Help Forum
Home
|
Profile
|
Register
|
Active Topics
|
Members
|
Search
|
FAQ
Username:
Password:
Save Password
Forgot your Password?
All Forums
My Little Help Desk - ASP Help
Active Server Pages
Send Email with CDO (VBScript)
New Topic
Reply to Topic
Author
Topic
alorentz
66 Posts
Posted - 10/03/2006 : 08:37:22
Below is code for using CDO:
Set objMessage = CreateObject("CDO.Message")
objMessage.Subject = "CDO Message"
objMessage.From = "
me@mydomain.com
"
objMessage.To = "
test@domain.com
"
objMessage.TextBody = "Hello There...."
'==configuration information for the SMTP server.
objMessage.Configuration.Fields.Item _
("
http://schemas.microsoft.com/cdo/configuration/sendusing
") = 2
objMessage.Configuration.Fields.Item _
("
http://schemas.microsoft.com/cdo/configuration/smtpserver
") = "smtp.myserver.com" 'Use IP if no server name
'port usually 25
objMessage.Configuration.Fields.Item _
("
http://schemas.microsoft.com/cdo/configuration/smtpserverport
") = 25
objMessage.Configuration.Fields.Update
objMessage.Send
Topic
New Topic
Reply to Topic
Jump To:
Select Forum
My Little Help Desk - ASP Help
Active Server Pages
--------------------
Home
Active Topics
Frequently Asked Questions
Member Information
Search Page
My Little Help Desk - ASP Help Forum
© mylittlehelpdesk.com
Snitz Forums 2000