implement MailAgent and use it for user and Character registration

This commit is contained in:
coderkun 2014-05-25 22:38:41 +02:00
commit 7c10592f6b
8 changed files with 183 additions and 31 deletions

View 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 ?>

View 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 ?>

View 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 ?>

View 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 ?>