IEmailAlert Interface

Inherited from

IDispatch

IUnknown

Applies to Objects

Event Logger

This interface is exposed from the Event Logger object and is useful for sending e-mail alerts to the administrator or any specified person. This interface includes properties for setting various details of the e-mail to send and a method to send the e-mail.

Property/Method

Description

EmailCc

Sets the e-mail addresses of the persons to whom copies of the e-mail alert are to be sent

EmailFrom

Sets the name or the e-mail address of the sender

EmailTo

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

SendEmail

Sends the actual e-mail message through the e-mail server

SMTPServerAddress

Sets the DNS or IP address of the e-mail server

Example

Dim EmailAlert As IEmailAlert
'Get the interface. 'DirectScript.EventLogger.1'is the ProgId of 'the Event Logger component.
Set EmailAlert = CreateObject ("DirectScript.EventLogger.1")

 

See Also: