이메일(email) Sample

<?php
/**
 * Email helper
 *
 * Created on 2011. 11. 18.
 * @author 불의회상 <hoksi2k@hanmail.net>
 * @package helper
 * @subpackage controllers
 * @version 1.0
 */
class Email_hlp extends CI_Controller {
	function __construct()
	{
		parent::__construct();
	}
	
	function index() {
		// Email Helper Load
		$this->load->helper('email');

		$data['valid_email'] = valid_email('email@somesite.com') ? 'email is valid' : 'email is not valid';
		
		$this->load->view('email_hlp_sample', $data);
	}
}
<?php $this->load->view('inc/header')?>

<table class="tablesorter" border="0" cellpadding="0" cellspacing="1">
<thead>
<tr>
  <th style="text-align:center" colspan="2">Email Helper</th>
</tr>
</thead>
<thead>
<tr>
  <th style="text-align:center" width="20%">구분</th>
  <th width="80%">결과</th>
</tr>
</thead>
<tr>
	<td>valid_email('email@somesite.com')</td>
	<td><?php echo $valid_email?></td>
</tr>
<tr>
	<td>send_email('수신자', '제목', '내용')</td>
	<td>PHP에 내장된 mail() 함수를 이용하여 메일을 보냅니다.</td>
</tr>
</table>

<?php $this->load->view('inc/footer')?>

© Copyright by hoksi(Page rendered in 0.0072 seconds)