email issues, error handling