Change send mail function using Flask-mail and set as asynchronous task. Related to #12 and #17.