X-Git-Url: https://git.mxchange.org/?a=blobdiff_plain;f=include%2Fuser.php;h=5e8014abf8a8ddf22db1eda7b9610342e4f4d41f;hb=b010a7db0d0073fc1bf0825e73a295d0bbeb9ada;hp=3997a8a61f12584da6469808d767fb93c53c2db6;hpb=5fe8ae514bedd3e53617f07eda96dff14755684d;p=friendica.git diff --git a/include/user.php b/include/user.php index 3997a8a61f..5e8014abf8 100644 --- a/include/user.php +++ b/include/user.php @@ -378,6 +378,29 @@ function create_user($arr) { } +/** + * @brief send registration confiŕmation with the intormation that reg is pending + * + * @param string $email + * @param string $sitename + * @param string $username + * @return NULL|boolean from notification() and email() inherited + */ +function send_register_pending_eml($email, $sitename, $username) { + $body = deindent(t(' + Dear %1$s, + Thank you for registering at %2$s. Your account is pending for approval by the administrator. + ')); + + $body = sprintf($body, $username, $sitename); + + return notification(array( + 'type' => "SYSTEM_EMAIL", + 'to_email' => $email, + 'subject'=> sprintf( t('Registration at %s'), $sitename), + 'body' => $body)); +} + /* * send registration confirmation. * It's here as a function because the mail is sent