Full-featured PHP send mail class code with detailed instructions