Added try/catch for sending email; function still needed