cdosys

CDO 2000 constants

CDO 2000 constants and enumerations

* Cdo2000.h
#DEFINE cdoDefaults	-1	&& Load all applicable default values from both Outlook Express (OE) and Internet Information Services.
#DEFINE cdoIIS	1	&& Load configuration default values from the local Internet Information Service.
#DEFINE cdoOutlookExpress	2	&& Load configuration values from the default identify of the default Outlook Express account.
#DEFINE cdoDSNDefault	0	&& No DSN commands are issued.
#DEFINE cdoDSNNever	1	&& No DSNs are issued.
#DEFINE cdoDSNFailure	2	&& Return an DSN if delivery fails.

Send email with CDO 2000

It's simple and convenient to send unattended email with CDO 2000 as long as there's a SMTP server available.


Note 1 Uses CDO 2000 class for sending emails

This is sample code. Add error handling and adjust to your requirements as necessary.

* Replace addresses with real ones before running the code
 
loMail = NEWOBJECT("Cdo2000", "Cdo2000.fxp")
 
WITH loMail
	.cServer = "smtp.somedomain.com"
 
	* Uncomment following lines and fill your credentials 
	*	if your SMTP server requires basic authentication

CDO 2000 class for sending emails

The CDO2000 class allows to send emails w/o user intervention using a SMTP server.

An example on how to use the class can be found at CDO 2000 class for sending emails.

Note 1 CDO 2000 is included in Windows 2000 and later.

Note 2 A character set of any body part is controlled by Charset property. The default is "us-ascii".

Syndicate content