summaryrefslogtreecommitdiffstats
path: root/settings/templates/email.new_user.php
diff options
context:
space:
mode:
authorMorris Jobke <hey@morrisjobke.de>2014-12-16 09:08:38 +0100
committerMorris Jobke <hey@morrisjobke.de>2014-12-16 09:10:22 +0100
commit3b61f76ca0eb9ad9487fa2ab64dda97e51f9df57 (patch)
tree2eede9268660f3b32646ae375e37cd542d4f36a2 /settings/templates/email.new_user.php
parent5b9c453071fe900529cd26b88fbc681d8b153b43 (diff)
downloadnextcloud-server-3b61f76ca0eb9ad9487fa2ab64dda97e51f9df57.tar.gz
nextcloud-server-3b61f76ca0eb9ad9487fa2ab64dda97e51f9df57.zip
Send mail for new users
* supply mail address * send mail with username and URL to that mail address * option to temporary enable this feature
Diffstat (limited to 'settings/templates/email.new_user.php')
-rw-r--r--settings/templates/email.new_user.php36
1 files changed, 36 insertions, 0 deletions
diff --git a/settings/templates/email.new_user.php b/settings/templates/email.new_user.php
new file mode 100644
index 00000000000..74149632cb8
--- /dev/null
+++ b/settings/templates/email.new_user.php
@@ -0,0 +1,36 @@
+<table cellspacing="0" cellpadding="0" border="0" width="100%">
+ <tr><td>
+ <table cellspacing="0" cellpadding="0" border="0" width="600px">
+ <tr>
+ <td bgcolor="<?php p($theme->getMailHeaderColor());?>" width="20px">&nbsp;</td>
+ <td bgcolor="<?php p($theme->getMailHeaderColor());?>">
+ <img src="<?php p(OC_Helper::makeURLAbsolute(image_path('', 'logo-mail.gif'))); ?>" alt="<?php p($theme->getName()); ?>"/>
+ </td>
+ </tr>
+ <tr><td colspan="2">&nbsp;</td></tr>
+ <tr>
+ <td width="20px">&nbsp;</td>
+ <td style="font-weight:normal; font-size:0.8em; line-height:1.2em; font-family:verdana,'arial',sans;">
+ <?php
+ print_unescaped($l->t('Hey there,<br><br>just letting you know that you now have an %s account.<br><br>Your username: %s<br>Access it: <a href="%s">%s</a><br><br>', array($theme->getName(), $_['username'], $_['url'], $_['url'])));
+
+ // TRANSLATORS term at the end of a mail
+ p($l->t('Cheers!'));
+ ?>
+ </td>
+ </tr>
+ <tr><td colspan="2">&nbsp;</td></tr>
+ <tr>
+ <td width="20px">&nbsp;</td>
+ <td style="font-weight:normal; font-size:0.8em; line-height:1.2em; font-family:verdana,'arial',sans;">--<br>
+ <?php p($theme->getName()); ?> -
+ <?php p($theme->getSlogan()); ?>
+ <br><a href="<?php p($theme->getBaseUrl()); ?>"><?php p($theme->getBaseUrl());?></a>
+ </td>
+ </tr>
+ <tr>
+ <td colspan="2">&nbsp;</td>
+ </tr>
+ </table>
+ </td></tr>
+</table>