1
<?php if ( ! defined('BASEPATH')) exit('No direct script access allowed');
5
* An open source application development framework for PHP 5.1.6 or newer
8
* @author ExpressionEngine Dev Team
9
* @copyright Copyright (c) 2008 - 2011, EllisLab, Inc.
10
* @license http://codeigniter.com/user_guide/license.html
11
* @link http://codeigniter.com
16
// ------------------------------------------------------------------------
19
* CodeIgniter Email Helpers
21
* @package CodeIgniter
24
* @author ExpressionEngine Dev Team
25
* @link http://codeigniter.com/user_guide/helpers/email_helper.html
28
// ------------------------------------------------------------------------
31
* Validate email address
36
if ( ! function_exists('valid_email'))
38
function valid_email($address)
40
return ( ! preg_match("/^([a-z0-9\+_\-]+)(\.[a-z0-9\+_\-]+)*@([a-z0-9\-]+\.)+[a-z]{2,6}$/ix", $address)) ? FALSE : TRUE;
44
// ------------------------------------------------------------------------
52
if ( ! function_exists('send_email'))
54
function send_email($recipient, $subject = 'Test email', $message = 'Hello World')
56
return mail($recipient, $subject, $message);
61
/* End of file email_helper.php */
62
/* Location: ./system/helpers/email_helper.php */
b'\\ No newline at end of file'