Mail message

Views: 5 Last modified: August 03rd, 2011 Comments: 0

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!');
VN:F [1.9.13_1145]
Rating: 0.0/10 (0 votes cast)
VN:F [1.9.13_1145]
Rating: 0 (from 0 votes)

    Mail this!

    To: From:Sum {3+8} =  
    Anything to add ?

        You must be logged in to post a comment.