Adding automail, updated functions.php, updated class_attend.phtml and javascript.js