Mail message
/**
* Can be used for error's, notifications or anything you want.
* @param string $subject
* @param string $message
*/
function notify_by_mail($subject, $message)
{
mail('to@example.net', $subject,"Send date/time:". date('Y-m-d / H:i:s ') ."\n\r". $message);
}
Example of use
notify_by_mail('Houston, we have a problem!', 'We have a huge problem!');
Mail this!
- Comments (0)
- PingBacks (0)
- TrackBacks (0)

» Latest comments