mailhelper file generation