Make email sending optional