Removed reference to _mailer and added functionality for phpMailer
Adding registration stuff, needs more updating