implement MailAgent and use it for user and Character registration
This commit is contained in:
parent
082f38ef49
commit
7c10592f6b
8 changed files with 183 additions and 31 deletions
2
views/htmlmail/mail/characterregistration.tpl
Normal file
2
views/htmlmail/mail/characterregistration.tpl
Normal file
|
|
@ -0,0 +1,2 @@
|
|||
<?=sprintf(_('User “%s” has registered a new Character for the Seminary “%s”'), $user['username'], $seminary['title'])?>:
|
||||
<?php if(!is_null($linker)) : ?><a href="<?=$linker->link(array('characters',$seminary['url'],$user['url']),0,false,null,false,null,true)?>"><?=$character['name']?></a><?php else : ?><?=$character['name']?><?php endif ?>
|
||||
2
views/htmlmail/mail/userregistration.tpl
Normal file
2
views/htmlmail/mail/userregistration.tpl
Normal file
|
|
@ -0,0 +1,2 @@
|
|||
<?=_('A new user has been registered')?>:
|
||||
<?php if(!is_null($linker)) : ?><a href="<?=$linker->link(array('users',$user['url']),0,true,null,false,null,true)?>"><?=$user['username']?></a><?php else : ?><?=$user['username']?><?php endif ?>
|
||||
3
views/textmail/mail/characterregistration.tpl
Normal file
3
views/textmail/mail/characterregistration.tpl
Normal file
|
|
@ -0,0 +1,3 @@
|
|||
<?=sprintf(_('User “%s” has registered a new Character for the Seminary “%s”'), $user['username'], $seminary['title'])?>: <?=$character['name']?>
|
||||
|
||||
<?php if(!is_null($linker)) : ?><?=$linker->link(array('characters',$seminary['url'],$user['url']),0,false,null,false,null,true)?><?php endif ?>
|
||||
3
views/textmail/mail/userregistration.tpl
Normal file
3
views/textmail/mail/userregistration.tpl
Normal file
|
|
@ -0,0 +1,3 @@
|
|||
<?=_('A new user has been registered')?>: <?=$user['username']?>
|
||||
|
||||
<?php if(!is_null($linker)) : ?><?=$linker->link(array('users',$user['url']),0,false,null,false,null,true)?><?php endif ?>
|
||||
Loading…
Add table
Add a link
Reference in a new issue