Send email when finish document now works