mirror of
https://github.com/Lastorder-DC/rhymix.git
synced 2026-01-05 17:51:40 +09:00
커뮤니케이션 모듈에 메일전송 기능을 삭제
This commit is contained in:
parent
6d239378a0
commit
b4239c1c61
5 changed files with 1 additions and 38 deletions
|
|
@ -78,12 +78,6 @@ class communicationController extends communication
|
|||
throw new Rhymix\Framework\Exception('msg_content_is_null');
|
||||
}
|
||||
|
||||
$send_mail = Context::get('send_mail');
|
||||
if($send_mail != 'Y')
|
||||
{
|
||||
$send_mail = 'N';
|
||||
}
|
||||
|
||||
// Check if there is a member to receive a message
|
||||
$oMemberModel = getModel('member');
|
||||
$oCommunicationModel = getModel('communication');
|
||||
|
|
@ -124,26 +118,6 @@ class communicationController extends communication
|
|||
return $output;
|
||||
}
|
||||
|
||||
// send an e-mail
|
||||
if($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 \Rhymix\Framework\Mail();
|
||||
$oMail->setSubject($title);
|
||||
$oMail->setBody(utf8_mbencode(removeHackTag($content)));
|
||||
$oMail->setFrom($logged_info->email_address ?: config('mail.default_from'), $logged_info->nick_name);
|
||||
$oMail->setReplyTo($logged_info->email_address);
|
||||
$oMail->addTo($receiver_member_info->email_address, $receiver_member_info->nick_name);
|
||||
$sendOutput = $oMail->send();
|
||||
if($sendOutput === false)
|
||||
{
|
||||
$oMail->setFrom(config('mail.default_from') ?: $logged_info->email_address, $logged_info->nick_name);
|
||||
$oMail->send();
|
||||
}
|
||||
}
|
||||
|
||||
if(!in_array(Context::getRequestMethod(), array('XMLRPC', 'JSON')))
|
||||
{
|
||||
if(Context::get('is_popup') != 'Y')
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue