mirror of
https://github.com/Lastorder-DC/rhymix.git
synced 2026-01-07 02:31:40 +09:00
쪽지 발송시 메일로도 발송하도록 기능 추가
git-svn-id: http://xe-core.googlecode.com/svn/sandbox@2768 201d5d3c-b55e-5fd7-737f-ddc643e51545
This commit is contained in:
parent
99d2058d20
commit
f2f3b1ac71
1 changed files with 13 additions and 1 deletions
|
|
@ -159,7 +159,19 @@
|
|||
}
|
||||
|
||||
// 쪽지 발송
|
||||
return $this->sendMessage($logged_info->member_srl, $receiver_srl, $title, $content);
|
||||
$output = $this->sendMessage($logged_info->member_srl, $receiver_srl, $title, $content);
|
||||
|
||||
// 메일로도 발송
|
||||
if($output->toBool()) {
|
||||
$oMail = new Mail();
|
||||
$oMail->setTitle($title);
|
||||
$oMail->setContent($content);
|
||||
$oMail->setSender($logged_info->user_name, $logged_info->email_address);
|
||||
$oMail->setReceiptor($receiver_member_info->user_name, $receiver_member_info->email_address);
|
||||
$oMail->send();
|
||||
}
|
||||
|
||||
return $output;
|
||||
}
|
||||
|
||||
function sendMessage($sender_srl, $receiver_srl, $title, $content, $sender_log = true) {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue