add progress bar when sending emails