%SYS.Monitor.Email

class %SYS.Monitor.Email extends %Library.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.

Property Inventory

Method Inventory

Properties

property Mailer as %Net.SMTP;
Mailer
Property methods: MailerGet(), MailerGetSwizzled(), MailerIsValid(), MailerNewObject(), MailerSet()
property Msg as %Net.MailMessage;
Mail message
Property methods: MsgGet(), MsgGetObject(), MsgGetObjectId(), MsgGetSwizzled(), MsgIsEmpty(), MsgIsValid(), MsgNewObject(), MsgSet(), MsgSetObject(), MsgSetObjectId(), MsgUnSwizzle()

Methods

method Initialize() as %Status [ Language = objectscript ]
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 [ Language = objectscript ]
Sends message via configured email.

Inherited Members

Inherited Methods

Feedback