Added prompt mail status
Added support for sending mails through javascript