Versions in this module Expand all Collapse all v5 v5.33.2 Jul 13, 2021 v5.33.1 Jul 13, 2021 v5.33.0 Jul 13, 2021 Changes in this version + const InbucketAPI + const StartTLS + const TLS + func ConnectToSMTPServer(config *SMTPConfig) (net.Conn, error) + func ConnectToSMTPServerAdvanced(config *SMTPConfig) (net.Conn, error) + func DeleteMailBox(email string) (err error) + func LoginAuth(username, password, host string) smtp.Auth + func NewSMTPClient(ctx context.Context, conn net.Conn, config *SMTPConfig) (*smtp.Client, error) + func NewSMTPClientAdvanced(ctx context.Context, conn net.Conn, config *SMTPConfig) (*smtp.Client, error) + func ParseEmail(email string) string + func RetryInbucket(attempts int, callback func() error) (err error) + func SendMail(c smtpClient, mail mailData, date time.Time) error + func SendMailUsingConfig(to, subject, htmlBody string, config *SMTPConfig, ...) error + func SendMailWithEmbeddedFilesUsingConfig(to, subject, htmlBody string, embeddedFiles map[string]io.Reader, ...) error + func TestConnection(config *SMTPConfig) error + 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 SMTPConfig struct + ConnectionSecurity string + EnableSMTPAuth bool + FeedbackEmail string + FeedbackName string + Hostname string + Password string + Port string + ReplyToAddress string + SendEmailNotifications bool + Server string + ServerName string + ServerTimeout int + SkipServerCertificateVerification bool + Username string