summaryrefslogtreecommitdiffstats
path: root/app/class/agent.class.php
diff options
context:
space:
mode:
authorMalf Furious <m@lfurio.us>2017-06-20 00:17:17 -0400
committerMalf Furious <m@lfurio.us>2017-06-20 00:17:17 -0400
commita4d96f0c1e9dd89df3dd189664f400680eb4e8fa (patch)
treeba0e0b0c02a7c3384306a38106ac6eebdb80b4f4 /app/class/agent.class.php
parent2376aabe74528b018189982224d61a643325b114 (diff)
parent2564b9953bb7bd8e90a9865962cb9e88d4cfd218 (diff)
downloadscrott-a4d96f0c1e9dd89df3dd189664f400680eb4e8fa.tar.gz
scrott-a4d96f0c1e9dd89df3dd189664f400680eb4e8fa.zip
Merge branch 'feature/email' into dev
Diffstat (limited to '')
-rw-r--r--app/class/agent.class.php12
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.