Fixed sending emails