*Important* to remove the mail_todisk function, that was just something I used for local testing since I did not have a mail server running on my local.