log mail errors