Mea culpa all round if this topic is well rehearsed

Could some kind person please direct me to a nice tutorial for PHP 5 that sets out how to get PHP to issue an email when a webuser has successfully logged into the members page of a little website ?

Thank you