Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Outlook Express & Microsoft Outlook E-mail clients
Message
De
17/03/2004 10:42:08
 
 
À
17/03/2004 07:14:46
Information générale
Forum:
Visual FoxPro
Catégorie:
COM/DCOM et OLE Automation
Divers
Thread ID:
00886614
Message ID:
00887086
Vues:
47
but forgive me for asking what is CDO.Message ? please enlighten me

Collaboration 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"
  
  *** Add any message text to the beginning of the body
  .HTMLBody = "THis is a test. This is only a test..."
  .Send()
ENDWITH
as also how to go about adding ATTACHMENTS to the message.
*** Add any attachments
loMsg.AddAttachment( "d:\somefolder\somefile.txt" )
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform