Send email when generation done
Sendemail when gen task done