CDOSYS - Knowledge Base Archives - Hivelocity Hosting https://www.hivelocity.net/kb/tag/cdosys/ Dedicated Servers, Private Cloud & Colocation Mon, 18 Dec 2023 15:24:01 +0000 en-US hourly 1 https://wordpress.org/?v=6.6 How do I use CDOSYS? https://www.hivelocity.net/kb/how-do-i-use-cdosys-3/ https://www.hivelocity.net/kb/how-do-i-use-cdosys-3/#respond Sat, 13 Nov 2010 11:07:01 +0000 https://kb.hivelocity.net/?p=1255 CDOSYS is a replacement for CDONTS and should be used instead of it. CDONTS has been removed from Windows 2003 and is no longer supported in Server 2003. A working example is below: Dim objMsg Dim objConfig Set objMsg = CreateObject(“CDO.Message”) Set objConfig = CreateObject(“CDO.Configuration”) Dim objFields Set objFields = objConfig.Fields ‘ Setup server information. …

How do I use CDOSYS? Read More »

The post How do I use CDOSYS? appeared first on Hivelocity Hosting.

]]>
CDOSYS is a replacement for CDONTS and should be used instead of it.
CDONTS has been removed from Windows 2003 and is no longer supported
in Server 2003. A working example is below:

Dim objMsg
Dim objConfig
Set objMsg = CreateObject(“CDO.Message”)
Set objConfig = CreateObject(“CDO.Configuration”)
Dim objFields
Set objFields = objConfig.Fields
‘ Setup server information. Comment out if using localhost
objFields(“https://schemas.microsoft.com/cdo/configuration/smtpserver”) = “mail.mysmtpserver.com”
objFields(“https://schemas.microsoft.com/cdo/configuration/smtpserverport”) = 25
objFields(“https://schemas.microsoft.com/cdo/configuration/sendusing”) = 2

‘ Setup server login information if your server require it. Comment out if using localhost
objFields(“https://schemas.microsoft.com/cdo/configuration/smtpauthenticate”) = 1
objFields(“https://schemas.microsoft.com/cdo/configuration/sendusername”) = “SMTPAUTHUser”
objFields(“https://schemas.microsoft.com/cdo/configuration/sendpassword”) = “SMTPAUTHPassword”

‘uncomment if using localhost.
‘objFields(“https://schemas.microsoft.com/cdo/configuration/sendusing”) = 1
‘objFields(“https://schemas.microsoft.com/cdo/configuration/smtpserverpickupdirectory”)=”c:\inetpub\mailroot\pickup”

objFields.Update

‘ Now you can setup message to send
Set objMsg.Configuration = objConfig
objMsg.To = “tosomeone@somewhere.com”
objMsg.From = “fromme@domain.com”
objMsg.Subject = “Some subject”
objMsg.TextBody = txMessage

objMsg.Send
set objMsg = NOTHING

The post How do I use CDOSYS? appeared first on Hivelocity Hosting.

]]>
https://www.hivelocity.net/kb/how-do-i-use-cdosys-3/feed/ 0