but forgive me for asking what is CDO.Message ? please enlighten meCollaboration Data Objects (CDO) is the current name for what was originally called “OLE Messaging”, and later re-named to “Active Messaging”. (It’s not surprising that people get confused is it?) CDO comes in three forms in two versions:
• Version 1.2 exists in two forms. The first form, implemented in CDO.DLL, provides MAPI based functionality and so is limited to plain text messages. It does not actually implement the entire functionality of Extended MAPI, but provides greater functionality than Simple MAPI. The second form, implemented in CDONTS.DLL, is SMTP based and allows messages to contain HTML.
• CDO Version 2.0, (also known as “CDOSYS”) provides an object model for the development of messaging applications under Windows 2000. It is based on the Simple Mail Transfer Protocol (SMTP) and Network News Transfer Protocol (NNTP) standards and is available as a system component on Microsoft Windows 2000 Server installations. (There is also a special version of CDO Version 2.0, which is only installed with Microsoft Exchange Server 2000, and is known as “CDOEX”)
and also kindly give me the methods for attaching text to the SUBJECT of the message#DEFINE cdoSendEmailAddress "http://schemas.microsoft.com/cdo/configuration/sendemailaddress"
loConfig = CREATEOBJECT( 'CDO.Configuration' )
loMsg = CREATEOBJECT( 'CDO.Message' )
WITH loMsg
.Configuration = loConfig
.To = "Someone@Somedomain.com"
.Subject = "Testing CDO"
.HTMLBody = "THis is a test. This is only a test..."
.Send()
ENDWITH
as also how to go about adding ATTACHMENTS to the message.
loMsg.AddAttachment( "d:\somefolder\somefile.txt" )