if mail is empty then generate it always