O'Reilly logo

ASP in a Nutshell, 2nd Edition by A. Keyton Weissinger

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

NewMail Object

Parent object: None.

The NewMail object is an addition to the original CDO library specifically for adding messaging functionality to an application. It makes sending a mail message as simple as writing a few lines of code. The NewMail object was built solely to quickly generate messages from within an application. There is no user interaction allowed for the NewMail object, and there is no support for an interface for logging into a mail server.

None of the properties common to the other CDO library items are supported by the NewMail object. The properties of the NewMail object are write-only. If you add Recipient objects or Attachment objects to a NewMail object, those items cannot be removed.

You cannot access the properties of any of the other CDO objects from within a NewMail object. The NewMail object is not part of the CDO hierarchy but is instantiated by itself.

You cannot remove the NewMail object from memory until you explicitly set the NewMail object variable to Nothing.

All of the properties and methods of the NewMail object listed in Table 15.15 and Table 15.16 are detailed in Section 15.5 and Section 15.6 of this chapter.

Table 15.15. NewMail Object Properties

Property

Description

Bcc

A string value that represents the recipients that will receive a blind copy of the current message.

Body

A string value that represents the NewMail's content body text.

BodyFormat

An integer value that represents the text format for the message content body text. ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required