Upgrade the mail module
remove templates method