Walmart apologized to customers who received an email containing a racial slur.