//여기서 문자보내기 연습//
$logged_info = Context::get('logged_info');
$title ='회원가입을 환영합니다';
$member_phone=$logged_info->phone[0].$logged_info->phone[1].$logged_info->phone[2];
$content=$logged_info->nick_name.'홈페이지 회원가입을 환영합니다';
$send_massage = self::sendMessage('07778986',$member_phone, $content, $title);
public static function sendMessage($phone_number, $r_number, $content, $title)
{
$oTextmessageController = getController('textmessage');
$args = new stdClass();
$args->content = $content;
$args->sender_no = $phone_number;
$args->recipient_no = $r_number;
$args->subject = $title;
$output = $oTextmessageController->sendMessage($args, FALSE);
if(!$output->toBool())
{
return false;
}
return true;
}