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 --- system/helpers/email_helper.php | 54 +++++++++++++++++ user_guide/helpers/download_helper.html | 3 +- user_guide/helpers/email_helper.html | 103 ++++++++++++++++++++++++++++++++ user_guide/helpers/file_helper.html | 5 +- user_guide/nav/nav.js | 1 + user_guide/toc.html | 1 + 6 files changed, 162 insertions(+), 5 deletions(-) create mode 100644 system/helpers/email_helper.php create mode 100644 user_guide/helpers/email_helper.html diff --git a/system/helpers/email_helper.php b/system/helpers/email_helper.php new file mode 100644 index 000000000..3729e042f --- /dev/null +++ b/system/helpers/email_helper.php @@ -0,0 +1,54 @@ + \ No newline at end of file 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 diff --git a/user_guide/nav/nav.js b/user_guide/nav/nav.js index ef484f6f1..951c1905c 100644 --- a/user_guide/nav/nav.js +++ b/user_guide/nav/nav.js @@ -102,6 +102,7 @@ function create_menu(basepath) '
  • Date Helper
  • ' + '
  • Directory Helper
  • ' + '
  • Download Helper
  • ' + + '
  • Email Helper
  • ' + '
  • File Helper
  • ' + '
  • Form Helper
  • ' + '
  • HTML Helper
  • ' + diff --git a/user_guide/toc.html b/user_guide/toc.html index 3c6b827cd..465d8f4bd 100644 --- a/user_guide/toc.html +++ b/user_guide/toc.html @@ -158,6 +158,7 @@ Table of Contents
  • Date Helper
  • Directory Helper
  • Download Helper
  • +
  • Email Helper
  • File Helper
  • Form Helper
  • HTML Helper
  • -- cgit v1.2.3-24-g4f1b