added a null check in getting Recipents from Mail address