mail_gen done