mirror of
https://github.com/Lastorder-DC/rhymix.git
synced 2026-01-09 03:32:00 +09:00
Fixed the format of the notifycation e-mail for new posts
This commit is contained in:
parent
c1e62d93c7
commit
0c2c3b80ac
3 changed files with 18 additions and 15 deletions
|
|
@ -177,26 +177,27 @@ class boardController extends board
|
|||
{
|
||||
$oModuleModel = getModel('module');
|
||||
$member_config = $oModuleModel->getModuleConfig('member');
|
||||
$is_logged = Context::get('is_logged');
|
||||
|
||||
if(!$is_logged && !$member_config->webmaster_email)
|
||||
if($member_config->webmaster_email)
|
||||
{
|
||||
$obj->email_address = $this->module_info->admin_mail;
|
||||
$mail_title = sprintf(lang('msg_document_notify_mail'), $obj->mid, cut_str($obj->title, 20, '...'));
|
||||
|
||||
$oMail = new Mail();
|
||||
$oMail->setTitle($mail_title);
|
||||
$oMail->setContent( sprintf("From : <a href=\"%s\">%s</a><br/>\r\n%s", getFullUrl('','document_srl',$obj->document_srl), getFullUrl('','document_srl',$obj->document_srl), $obj->content));
|
||||
$oMail->setSender($member_config->webmaster_name ?: null, $member_config->webmaster_email);
|
||||
|
||||
$target_mail = explode(',',$this->module_info->admin_mail);
|
||||
for($i=0;$i<count($target_mail);$i++)
|
||||
{
|
||||
$email_address = trim($target_mail[$i]);
|
||||
if(!$email_address) continue;
|
||||
$oMail->setReceiptor($email_address, $email_address);
|
||||
$oMail->send();
|
||||
}
|
||||
}
|
||||
|
||||
$oMail = new Mail();
|
||||
$oMail->setTitle($obj->title);
|
||||
$oMail->setContent( sprintf("From : <a href=\"%s\">%s</a><br/>\r\n%s", getFullUrl('','document_srl',$obj->document_srl), getFullUrl('','document_srl',$obj->document_srl), $obj->content));
|
||||
$oMail->setSender($obj->user_name ?: null, $obj->email_address ? $obj->email_address : $member_config->webmaster_email);
|
||||
|
||||
$target_mail = explode(',',$this->module_info->admin_mail);
|
||||
for($i=0;$i<count($target_mail);$i++)
|
||||
{
|
||||
$email_address = trim($target_mail[$i]);
|
||||
if(!$email_address) continue;
|
||||
$oMail->setReceiptor($email_address, $email_address);
|
||||
$oMail->send();
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
|||
|
|
@ -48,3 +48,4 @@ $lang->cmd_only_p_comment = 'Only if there are replies';
|
|||
$lang->cmd_all_comment_message = 'Always';
|
||||
$lang->cmd_do_not_message = 'Never';
|
||||
$lang->delete_placeholder = 'Delete Placeholder';
|
||||
$lang->msg_document_notify_mail = '[%s] The new post : %s';
|
||||
|
|
|
|||
|
|
@ -77,3 +77,4 @@ $lang->cmd_only_p_comment = '대댓글이 있는 경우에만 남김';
|
|||
$lang->cmd_all_comment_message = '모든 댓글에 남김';
|
||||
$lang->cmd_do_not_message = '남기지 않음';
|
||||
$lang->delete_placeholder = '완전 삭제';
|
||||
$lang->msg_document_notify_mail = '[%s] 새로운 게시글이 등록되었습니다 : %s';
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue