function send_email($to = '받는 메일주소', $title = '제목',$contents = '내용') { $CI = & get_instance(); $CI->load->library('email'); $config['protocol'] = 'smtp'; $config['mailtype'] = 'html'; $config['smtp_host'] = 'ssl://smtp.naver.com'; $config['smtp_user'] = ''; $config['smtp_pass'] = ''; $config['smtp_port'] = 465; $config['charset'] = 'utf-8'; $config['smtp_timeout'] = 5; $config['wordwrap'] = TRUE..
ci와 mssql2008 연결은 sqlsrv를 사용하면 연결 가능하다 다만 서버에 sqlcmd설치가 되야 연결 가능 연결 후 다국어 처리 시 값 앞에 N을 넣어주게 되는데 이부분 처리를 매번 하지 않고 ci설정을 변경해서 처리함 /system/database/DB_Driver.php protected function _insert($table, $keys, $values) { foreach($values as $key => $value) { if(substr($value,0,1) == "'") { $values[$key] = "N". $value; } } return 'INSERT INTO '.$table.' ('.implode(', ', $keys).') VALUES ('.implode(', ', $v..