fix problem with variables in mail