|
|
Visits:
3027
(29 on line)
|
Last Update: Dec 21, 2003
|
|
|
|
| | |
| Description Inheritance Example Properties Methods |
| |
| Description |
The non visual TCDO5 Object is another object for sending Emails under program control.
It is mainly a reminder of the steps showing how to use the Microsoft CDONTS.NewMail object
for sending Emails: the TCDO5 only property is <help> which shows a complete example on
how to use CDONTS.NewMail.
The URL to visit to know about how to install CDONTS is:
http://msdn.microsoft.com/library/default.asp?url=/library/en-us/cdo/html/_denali_installing_cdo_for_nts.asp
(note CDONTS is installed with IIS so Windows NT/2000/XP running IIS should have CDONTS)
See also: TBlatMail5 TEmail5 TMAPI5 TOutlookMail5
Note: TEmail5 is the preferred way for programmatically sending E-mails |
| Description Inheritance Example Properties Methods |
| |
| Inheritance |
Inherits from: TObject5 |
| Description Inheritance Example Properties Methods |
| |
| Example |
| |
'cdo'Świ'*Create' 'TCDO5'
'cdo'Świ'*xFrom' 'eric@lescasse.com'
'cdo'Świ'*xTo' 'eric@lescasse.com'
'cdo'Świ'*xCc' 'eric@lescasse.com'
'cdo'Świ'*xBodyFormat'0 © 0=HTML, 1=Plain text
'cdo'Świ'*xMailFormat'0 © 0=MIME, 1=Plain text © use 0=MIME if xBodyFormat is 0=HTML
body„'Sample CDO E-mail'
body„body,Śtcnl,'This is an E-mail sent with TCDO5,'
body„body,Śtcnl,'an ""APL+Win Objects"" object'
body„body,Śtcnl,'based on Microsoft CDONTS object'
body„body,Śtcnl,'sent by: Eric Lescasse'
body„body,Śtcnl,''
'cdo'Świ'*xContentBase' 'http://www.lescasse.com/'
'cdo'Świ'*xContentLocation' 'images/'
'cdo'Świ'*xBody'body
'cdo'Świ'*xSubject' 'Re: TCDO5 Demo'
'cdo'Świ'*xImportance'1 © 0=Low, 1=Normal, 2=High
'cdo'Świ'*XAttachFile' 'c:\inetpub\wwwroot\lc\images\eric.gif'
'cdo'Świ'*XAttachFile' 'c:\inetpub\wwwroot\lc\images\eric50.gif'
'cdo'Świ'*XSend'
Śerase'body'
|
| |
| Description Inheritance Example Properties Methods |
| |
| Properties |
| |
|
| class |
Description: Return current object class
Syntax: class„'obj' Świ 'class' |
| help |
Example:
0 0˝'cdo' Świ '*Create' 'TCDO5'
'cdo' Świ '*xFrom' 'eric@lescasse.com'
'cdo' Świ '*xTo' 'eric@lescasse.com'
'cdo' Świ '*xCc' 'eric@lescasse.com'
'cdo' Świ '*xBodyFormat'0 © 0=HTML, 1=Plain text
'cdo' Świ '*xMailFormat'0 © 0=MIME, 1=Plain text © use 0=MIME if xBodyFormat is 0=HTML
body„'<HTML><HEAD><TITLE>Sample CDO E-mail</TITLE></HEAD>'
body„body,Śtcnl,'<BODY>This is an E-mail sent with TCDO5,'
body„body,Śtcnl,'an ""APL+Win Objects"" object'
body„body,Śtcnl,'based on <B>Microsoft CDONTS</B> object'
body„body,Śtcnl,'sent by: Eric Lescasse'
body„body,Śtcnl,'</BODY></HTML>'
'cdo' Świ '*xContentBase' 'http://www.lescasse.com/'
'cdo' Świ '*xContentLocation' 'images/'
'cdo' Świ '*xBody'body
'cdo' Świ '*xSubject' 'Re: TCDO5 Demo'
'cdo' Świ '*xImportance'1 © 0=Low, 1=Normal, 2=High
'cdo' Świ '*XAttachFile' 'c:\inetpub\wwwroot\lc\images\eric.gif'
'cdo' Świ '*XAttachFile' 'c:\inetpub\wwwroot\lc\images\eric50.gif'
'cdo' Świ '*XSend'
Śerase'body' |
|
| Description Inheritance Example Properties Methods |
| |
| Methods |
| |
|
| New |
Description: Create a new instance of TCDO5
Example:
'obj' Świ '*Create' 'TCDO5'
|
|
| Description Inheritance Example Properties Methods |
| |
|