123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384 |
- <?php
- defined('BASEPATH') OR exit('No direct script access allowed');
- if ( ! function_exists('valid_email'))
- {
-
- function valid_email($email)
- {
- return (bool) filter_var($email, FILTER_VALIDATE_EMAIL);
- }
- }
- if ( ! function_exists('send_email'))
- {
-
- function send_email($recipient, $subject, $message)
- {
- return mail($recipient, $subject, $message);
- }
- }
|