combine with the portal email report function