Fix the sending email after deploy