wrapped send email method in try catch incase it fails so we can log error