Versions in this module Expand all Collapse all v2 v2.5.3 Aug 25, 2020 v2.5.2 Aug 25, 2020 Changes in this version + const AuthCRAMMD5 + const AuthLogin + const AuthPlain + const EncodingBase64 + const EncodingNone + const EncodingQuotedPrintable + const EncryptionNone + const EncryptionSSL + const EncryptionTLS + const PriorityHigh + const PriorityLow + const TextHTML + const TextPlain + type Email struct + Charset string + Encoding encoding + Error error + SMTPServer *smtpClient + func NewMSG() *Email + func (email *Email) AddAddresses(header string, addresses ...string) *Email + func (email *Email) AddAlternative(contentType contentType, body string) *Email + func (email *Email) AddAttachment(reader io.Reader, filename string) *Email + func (email *Email) AddAttachmentBase64(b64File string, name string) *Email + func (email *Email) AddBcc(addresses ...string) *Email + func (email *Email) AddCc(addresses ...string) *Email + func (email *Email) AddHeader(header string, values ...string) *Email + func (email *Email) AddHeaders(headers textproto.MIMEHeader) *Email + func (email *Email) AddInline(reader io.Reader, filename string) *Email + func (email *Email) AddTo(addresses ...string) *Email + func (email *Email) GetError() error + func (email *Email) GetFrom() string + func (email *Email) GetMessage() string + func (email *Email) Send(client *SMTPClient) error + func (email *Email) SetBody(contentType contentType, body string) *Email + func (email *Email) SetDate(dateTime string) *Email + func (email *Email) SetFrom(address string) *Email + func (email *Email) SetPriority(priority priority) *Email + func (email *Email) SetReplyTo(address string) *Email + func (email *Email) SetReturnPath(address string) *Email + func (email *Email) SetSender(address string) *Email + func (email *Email) SetSubject(subject string) *Email + type SMTPClient struct + Client *smtpClient + KeepAlive bool + SendTimeout time.Duration + func (smtpClient *SMTPClient) Close() error + func (smtpClient *SMTPClient) Noop() error + func (smtpClient *SMTPClient) Quit() error + func (smtpClient *SMTPClient) Reset() error + type SMTPServer struct + Authentication authType + ConnectTimeout time.Duration + Encryption encryption + Host string + KeepAlive bool + Password string + Port int + SendTimeout time.Duration + TLSConfig *tls.Config + Username string + func NewSMTPClient() *SMTPServer + func (server *SMTPServer) Connect() (*SMTPClient, error) Other modules containing this package github.com/tinyscreen/go-simple-mail