diff options
-rw-r--r-- | app/class/agent.class.php | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/app/class/agent.class.php b/app/class/agent.class.php index a2c8c2e..ed50b93 100644 --- a/app/class/agent.class.php +++ b/app/class/agent.class.php @@ -14,6 +14,9 @@ require_once "class/object.class.php"; require_once "class/pad.class.php"; +require_once "class/settings.class.php"; +require_once "class/phpmailer.class.php"; +require_once "class/smtp.class.php"; /* * This is a supertype for users and groups, since these two object types @@ -52,6 +55,15 @@ abstract class agent extends object } /* + * Send an email message to this agent using stored configuration + * parameters. If config is not established, delivery is not + * attempted. Return status. + */ + public abstract function sendEmail(string $subj, string $mesg, + ?string $attachPath = NULL, ?string $attachName = NULL, + bool $ignoreEmailConf = false) : bool; + + /* * Get the display name for this agent. For groups this is the * object name; for users, this is the object name, unless an * alias is set. |