From 5a34f04129f97fff9f6a3f8b9d02bf724134cd06 Mon Sep 17 00:00:00 2001 From: Derek Allard Date: Sat, 19 Jan 2008 19:41:54 +0000 Subject: added email helper --- user_guide/helpers/download_helper.html | 3 +- user_guide/helpers/email_helper.html | 103 ++++++++++++++++++++++++++++++++ user_guide/helpers/file_helper.html | 5 +- 3 files changed, 106 insertions(+), 5 deletions(-) create mode 100644 user_guide/helpers/email_helper.html (limited to 'user_guide/helpers') diff --git a/user_guide/helpers/download_helper.html b/user_guide/helpers/download_helper.html index ff9bd2e8d..a82d1980f 100644 --- a/user_guide/helpers/download_helper.html +++ b/user_guide/helpers/download_helper.html @@ -104,8 +104,7 @@ Previous Topic:  Directory Helper    ·   Top of Page   ·   User Guide Home   ·   -Next Topic:  File Helper -

+Next Topic:  Email Helper

CodeIgniter  ·  Copyright © 2007  ·  Ellislab, Inc.

diff --git a/user_guide/helpers/email_helper.html b/user_guide/helpers/email_helper.html new file mode 100644 index 000000000..fe0e3cc4a --- /dev/null +++ b/user_guide/helpers/email_helper.html @@ -0,0 +1,103 @@ + + + + +CodeIgniter User Guide : Download Helper + + + + + + + + + + + + + + + + + + + + + + +
+ + + + + +

CodeIgniter User Guide Version 1.6.0

+
+ + + + + + + + + + +
+ + +
+ + + +
+ + +

Download Helper

+ +

The Download Helper lets you download data to your desktop.

+ + +

Loading this Helper

+ +

This helper is loaded using the following code:

+$this->load->helper(email); + +

The following functions are available:

+ +

valid_email('email')

+ +

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';
+}
+

send_email('recipient', 'subject', 'message')

+

Sends an email using PHP's native mail() function. For a more robust email solution, see CodeIgniter's Email Class.

+
+ + + + + + + \ No newline at end of file diff --git a/user_guide/helpers/file_helper.html b/user_guide/helpers/file_helper.html index 29a859409..d2d61ad09 100644 --- a/user_guide/helpers/file_helper.html +++ b/user_guide/helpers/file_helper.html @@ -136,12 +136,11 @@ can optionally be added to the file names by setting the second parameter to TRU -- cgit v1.2.3-24-g4f1b