wrapped the pony mail in a method that is called only if the to, subject and body params are recieved