Lines Matching refs:recipient
11 * @param string $recipient
17 public function sendMail($recipient, $sender, $replacements = []) argument
27 $mailer->bcc($recipient);
50 foreach ($recipients as $recipient) {
51 $recipient = trim($recipient);
53 if ($recipient[0] === '@') {
54 $this->resolveGroup($resolved, $recipient);
55 } elseif (strpos($recipient, '@') === false) {
56 $this->resolveUser($resolved, $recipient);
58 if (!$this->emailIsValid($recipient)) {
61 $resolved[] = $recipient;
69 * @param string $recipient
73 protected function resolveGroup(&$resolved, $recipient) argument
81 $users = $auth->retrieveUsers(0, 0, ['grps' => substr($recipient, 1)]);
89 * @param string $recipient
92 protected function resolveUser(&$resolved, $recipient) argument
96 $user = $auth->getUserData($recipient);