summaryrefslogtreecommitdiffstats
path: root/system/helpers/email_helper.php
diff options
context:
space:
mode:
authorAndrey Andreev <narf@bofh.bg>2012-11-08 14:13:52 +0100
committerAndrey Andreev <narf@bofh.bg>2012-11-08 14:13:52 +0100
commit0898e2395df056f5df90a1dd2d5550f0eae4cd7c (patch)
tree6a20d46c2a06a3c6e00a9b8f08d53ed55b0490b2 /system/helpers/email_helper.php
parente2b0754c4ea3fe227bc80a546f4d5cbd88a1e24e (diff)
Deprecate the Email helper
Diffstat (limited to 'system/helpers/email_helper.php')
-rw-r--r--system/helpers/email_helper.php12
1 files changed, 7 insertions, 5 deletions
diff --git a/system/helpers/email_helper.php b/system/helpers/email_helper.php
index 6f5d17255..dfb166a5a 100644
--- a/system/helpers/email_helper.php
+++ b/system/helpers/email_helper.php
@@ -43,7 +43,8 @@ if ( ! function_exists('valid_email'))
/**
* Validate email address
*
- * @param string
+ * @deprecated 3.0.0 Use PHP's filter_var() instead
+ * @param string $email
* @return bool
*/
function valid_email($email)
@@ -59,12 +60,13 @@ if ( ! function_exists('send_email'))
/**
* Send an email
*
- * @param string
- * @param string
- * @param string
+ * @deprecated 3.0.0 Use PHP's mail() instead
+ * @param string $recipient
+ * @param string $subject
+ * @param string $message
* @return bool
*/
- function send_email($recipient, $subject = 'Test email', $message = 'Hello World')
+ function send_email($recipient, $subject, $message)
{
return mail($recipient, $subject, $message);
}