Imports github.com/mattermost/mattermost-server/model github.com/jaytaylor/html2text github.com/mattermost/mattermost-server/services/filesstore gopkg.in/gomail.v2 github.com/mattermost/mattermost-server/mlog github.com/mattermost/mattermost-server/utils Standard library imports mime net/smtp bytes net/mail io net net/http os strings time crypto/tls encoding/json errors fmt