Test email sending fix