IEmailAlert Property: EmailTo

Property Name
EmailTo

Property Type
Variant

Description
Sets the e-mail address of the person to whom the e-mail alert is to be sent.

Example

Dim EmailAlert As IEmailAlert
Dim EmailAddrs(2) As String
'Get the interface. 'DirectScript.EventLogger.1'is the ProgId of 'the Event Logger component.
Set EmailAlert = CreateObject ("DirectScript.EventLogger.1")
EmailAddrs(0) = "jsmith@microsoft.com"
EmailAddrs(1) = "gjohn@microsoft.com"
'Set EmailTo property
EmailAlert.EmailTo = EmailAddrs

 

See Also: