CodeIgniter User Guide Version 2.2.6 |
Table of Contents Page |
CodeIgniter Home › User Guide Home › Email Helper |
The Email Helper provides some assistive functions for working with Email. For a more robust email solution, see CodeIgniter's Email Class.
This helper is loaded using the following code:
$this->load->helper('email');
The following functions are available:
Checks if an email is a correctly formatted email. Note that is doesn't actually prove the email will recieve mail, simply that it is a validly formed address.
It returns TRUE/FALSE
$this->load->helper('email');
if (valid_email('email@somesite.com'))
{
echo 'email is valid';
}
else
{
echo 'email is not valid';
}
Sends an email using PHP's native mail() function. For a more robust email solution, see CodeIgniter's Email Class.
Previous Topic: Download Helper · Top of Page · User Guide Home · Next Topic: File Helper
CodeIgniter · Copyright © 2006 - 2014 · EllisLab, Inc. · Copyright © 2014 - 2015 · British Columbia Institute of Technology