쪽지 발송시 메일로도 발송할 것인지에 대한 옵션 추가

git-svn-id: http://xe-core.googlecode.com/svn/sandbox@2801 201d5d3c-b55e-5fd7-737f-ddc643e51545
This commit is contained in:
zero 2007-10-16 08:15:05 +00:00
parent de0101e453
commit f9896fe51a
3 changed files with 14 additions and 1 deletions

View file

@ -146,6 +146,9 @@
$content = trim(Context::get('content'));
if(!$content) return new Object(-1, 'msg_content_is_null');
$send_mail = Context::get('send_mail');
if($send_mail != 'Y') $send_mail = 'N';
// 받을 회원이 있는지에 대한 검사
$oMemberModel = &getModel('member');
$receiver_member_info = $oMemberModel->getMemberInfoByMemberSrl($receiver_srl);
@ -162,7 +165,9 @@
$output = $this->sendMessage($logged_info->member_srl, $receiver_srl, $title, $content);
// 메일로도 발송
if($output->toBool()) {
if($output->toBool() && $send_mail == 'Y') {
$view_url = Context::getRequestUri();
$content = sprintf("%s<br /><br />From : <a href=\"%s\" target=\"_blank\">%s</a>",$content, $view_url, $view_url);
$oMail = new Mail();
$oMail->setTitle($title);
$oMail->setContent($content);

View file

@ -24,6 +24,10 @@
<th scope="row">{$lang->title}</th>
<td><input type="text" name="title" id="message_title" class="inputTypeText w300" /></td>
</tr>
<tr>
<th scope="row">{$lang->cmd_option}</th>
<td><input type="checkbox" value="Y" name="send_mail" /> {$lang->cmd_send_mail}</td>
</tr>
</table>
<div class="editor">

View file

@ -24,6 +24,10 @@
<th scope="row">{$lang->title}</th>
<td><input type="text" name="title" id="message_title" class="inputTypeText w300" /></td>
</tr>
<tr>
<th scope="row">{$lang->cmd_option}</th>
<td><input type="checkbox" value="Y" name="send_mail" /> {$lang->cmd_send_mail}</td>
</tr>
</table>
<div class="editor">