Advanced application template now uses mailer component instead of mail() function
Used full method names when sending email in advanced app