| The Email Helper provides some assistive functions for working with |
| Email. For a more robust email solution, see CodeIgniter's :doc:`Email |
| Class <../libraries/email>`. |
| .. contents:: Page Contents |
| 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 |
| $this->load->helper('email'); |
| if (valid_email('email@somesite.com')) |
| echo 'email is not valid'; |
| send_email('recipient', 'subject', 'message') |
| ============================================= |
| Sends an email using PHP's native |
| `mail() <http://www.php.net/function.mail>`_ function. For a more robust |
| email solution, see CodeIgniter's :doc:`Email |
| Class <../libraries/email>`. |