export and mail