Wrox Programmer Forums
|
ASP CDO As of Oct 5, 2005, this forum is now locked. No posts have been deleted. Please use "Classic ASP Professional" at: http://p2p.wrox.com/forum.asp?FORUM_ID=56 for discussions similar to the old ASP Pro Code Clinic or one of the other many remaining ASP and ASP.NET forums here.
Welcome to the p2p.wrox.com Forums.

You are currently viewing the ASP CDO section of the Wrox Programmer to Programmer discussions. This is a community of software programmers and website developers including Wrox book authors and readers. New member registration was closed in 2019. New posts were shut off and the site was archived into this static format as of October 1, 2020. If you require technical support for a Wrox book please contact http://hub.wiley.com
 
Old September 16th, 2004, 10:38 AM
Authorized User
 
Join Date: Jun 2003
Posts: 33
Thanks: 0
Thanked 0 Times in 0 Posts
Default

I found this useful when I was converting from CDONTS to CDO

http://scripts.sksl.com

Pat

-------------------
System 3 2000 Limited
www.system3-2000.co.uk
 
Old September 17th, 2004, 12:27 PM
Authorized User
 
Join Date: Sep 2004
Posts: 17
Thanks: 0
Thanked 0 Times in 0 Posts
Default

I use the following code for using CDOSYS. Remember that it wont work with NT.. This code def works, the only thing u need to do is change the IP mail address.

Set cdoMail = Server.CreateObject("CDO.Message")
Set cdoCON = Server.CreateObject ("CDO.Configuration")

'------------ localhost to the IP address. --------

cdoCON.Fields("http://schemas.microsoft.com/cdo/configuration/smtpserver") = "localhost"
cdoCON.Fields("http://schemas.microsoft.com/cdo/configuration/smtpserverport") = 25
cdoCON.Fields("http://schemas.microsoft.com/cdo/configuration/sendusing") = 2
cdoCON.Fields("http://schemas.microsoft.com/cdo/configuration/smtpconnectiontimeout") = 60
cdoCON.Fields.Update

Set cdoMail.Configuration = cdoCON

cdoMail.From = "someone@somwhere"
cdoMail.To = "someone@somwhere"
cdoMail.Subject = "title"
cdoMail.HTMLBody = "hello do u work dale"
cdoMail.Send


Set cdoMail = Nothing
Set cdoCON = Nothing



DJWright





Similar Threads
Thread Thread Starter Forum Replies Last Post
CDONTS and CDOSYS hamproof Classic ASP Databases 0 August 24th, 2007 01:37 PM
CDONTS to CDOSYS icis Classic ASP Basics 1 March 2nd, 2006 06:27 PM





Powered by vBulletin®
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.
Copyright (c) 2020 John Wiley & Sons, Inc.