Advanced application template now uses mailer component instead of mail() function