Lines Matching defs:recipient
55 // get recipient emails
96 foreach ($recipients as $recipient) {
97 $recipient = trim($recipient);
99 if ($recipient[0] === '@') {
100 $this->resolveGroup($resolved, $recipient);
101 } elseif (strpos($recipient, '@') === false) {
102 $this->resolveUser($resolved, $recipient);
104 $resolved[] = $recipient;
112 * @param string $recipient
116 protected function resolveGroup(&$resolved, $recipient)
125 $users = $auth->retrieveUsers(0, 5000, ['grps' => substr($recipient, 1)]);
133 * @param string $recipient
136 protected function resolveUser(&$resolved, $recipient)
140 $user = $auth->getUserData($recipient);