try/except for email sending