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