added code for emails and sms when documents have upload to the system
adding code for emails and sms when documents uploaded