Add mail function (but still cannot send mails)