try to resend email if sending failed