Fix sending mails