Fix upgrade issue not sending emails to customers