Merge branch 'master' into revisionHandle3
[dokuwiki.git] / inc / Subscriptions / RegistrationSubscriptionSender.php
blobbd4887599004e631be5365f36c58978a643e6d21
1 <?php
3 namespace dokuwiki\Subscriptions;
5 class RegistrationSubscriptionSender extends SubscriptionSender
8 /**
9 * Send a notify mail on new registration
11 * @param string $login login name of the new user
12 * @param string $fullname full name of the new user
13 * @param string $email email address of the new user
15 * @return bool true if a mail was sent
16 * @author Andreas Gohr <andi@splitbrain.org>
19 public function sendRegister($login, $fullname, $email)
21 global $conf;
22 if (empty($conf['registernotify'])) {
23 return false;
26 $trep = [
27 'NEWUSER' => $login,
28 'NEWNAME' => $fullname,
29 'NEWEMAIL' => $email,
32 return $this->send(
33 $conf['registernotify'],
34 'new_user',
35 $login,
36 'registermail',
37 $trep