CDO is Collaboration Data Objects and it is a Component Object Model (COM) component designed to simplify writing programs that create or manipulate Internet messages. So, we should be able to use KiX's COM support to use CDO... we we can!If you want more information about CDO in Win2000 have a look at MSDN's About CDO for Windows 2000 page. I have only used this script on Win2k with KiX Beta2a.
Be sure to put @@ in the email addresses too.
SendMail3.k2k
code:
break on
; send email with COM
$FromName="Mr Man."
$FromAddress="MrMan@@theInternet.com"
$ToName="you"
$ToAddress="your.email@@address.com"
$Subject="This is my first KiX email"
$Message="Hello, this is an email, blah blah blah.... :)"
$oMsg = CreateObject("CDO.Message")
$oMsg.From = '"'+$FromName+'"'+$FromAddress
$oMsg.To = '"'+$ToName+'"'+$ToAddress
$oMsg.Subject = $Subject
$oMsg.TextBody = $Message
"Sending..." ?
$oMsg.Send()
cj
------------------
cj's scripts page
cj's User Guide - 14 May 2001
chrismat@ozemail.com.au
[This message has been edited by cj (edited 22 June 2001).]