]> git.mxchange.org Git - friendica.git/blobdiff - include/user.php
Merge pull request #3003 from tobiasd/20161209-lang
[friendica.git] / include / user.php
index 3997a8a61f12584da6469808d767fb93c53c2db6..5e8014abf8a8ddf22db1eda7b9610342e4f4d41f 100644 (file)
@@ -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