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