added mail feature nd upload in Application.scala
refactored mail sent