added mail export capability