Learning
Documentation
Community
Open Exchange
Global Masters
Home / Class Reference / ENSLIB namespace / %SYS.Monitor.Email
Private  Storage   

%SYS.Monitor.Email


class %SYS.Monitor.Email extends
%RegisteredObject

Provides a simple way for the System Monitor to send alerts via email. May be used by user extensions for Sensors, Subscribers or Notifiers to send configured email alerts by calling %New() and SendEmail(). Note that %New() can fail if the Server or Recipients are not correctly configured, so the caller should check for this and report the error in %objlasterror.

Inventory


Parameters Properties Methods Queries Indices ForeignKeys Triggers
2 3


Summary


Properties
Mailer Msg

Methods
%AddToSaveSet %ClassIsLatestVersion %ClassName %ConstructClone
%DispatchClassMethod %DispatchGetModified %DispatchGetProperty %DispatchMethod
%DispatchSetModified %DispatchSetMultidimProperty %DispatchSetProperty %Extends
%GetParameter %IsA %IsModified %New
%NormalizeObject %ObjectModified %OriginalNamespace %PackageName
%RemoveFromSaveSet %SerializeObject %SetModified %ValidateObject
Initialize SendEmail


Properties


• property Mailer as %Net.SMTP;
Mailer
• property Msg as %Net.MailMessage;
Mail message

Methods


• method Initialize() as %Status
Initialize the email object using configured Server, Recipients, SSL Config, etc. May fail if missing configuration info, see %Status.
• method SendEmail(msg As %String) as %Status
Sends message via configured email.