Versions in this module Expand all Collapse all v5 v5.22.0 Apr 4, 2020 Changes in this version + const INBUCKET_API + func ConnectToSMTPServer(config *model.Config) (net.Conn, *model.AppError) + func ConnectToSMTPServerAdvanced(connectionInfo *SmtpConnectionInfo) (net.Conn, *model.AppError) + func DeleteMailBox(email string) (err error) + func LoginAuth(username, password, host string) smtp.Auth + func NewSMTPClient(ctx context.Context, conn net.Conn, config *model.Config) (*smtp.Client, *model.AppError) + func NewSMTPClientAdvanced(ctx context.Context, conn net.Conn, hostname string, ...) (*smtp.Client, *model.AppError) + func ParseEmail(email string) string + func RetryInbucket(attempts int, callback func() error) (err error) + func SendMail(c smtpClient, mail mailData, fileBackend filesstore.FileBackend, ...) *model.AppError + func SendMailUsingConfig(to, subject, htmlBody string, config *model.Config, ...) *model.AppError + func SendMailWithEmbeddedFilesUsingConfig(to, subject, htmlBody string, embeddedFiles map[string]io.Reader, ...) *model.AppError + func TestConnection(config *model.Config) *model.AppError + type JSONMessageHeaderInbucket []struct + func GetMailBox(email string) (results JSONMessageHeaderInbucket, err error) + type JSONMessageInbucket struct + Attachments []struct{ ... } + Body struct{ ... } + Date string + From string + Header map[string][]string + ID string + Mailbox string + Size int + Subject string + func GetMessageFromMailbox(email, id string) (JSONMessageInbucket, error) + type SmtpConnectionInfo struct + Auth bool + ConnectionSecurity string + SkipCertVerification bool + SmtpPassword string + SmtpPort string + SmtpServerHost string + SmtpServerName string + SmtpServerTimeout int + SmtpUsername string Other modules containing this package github.com/vnforks/kid