logging errors now for sent mail