Versions in this module Expand all Collapse all v2 v2.11.0 Oct 12, 2021 Changes in this version + const AUTHENTICATE_MESSAGE + const CHALLENGE_MESSAGE + const EncodingBase64 + const EncodingNone + const EncodingQuotedPrintable + const NEGOTIATE_128 + const NEGOTIATE_56 + const NEGOTIATE_ALWAYS_SIGN + const NEGOTIATE_ANONYMOUS + const NEGOTIATE_DATAGRAM + const NEGOTIATE_EXTENDED_SESSIONSECURITY + const NEGOTIATE_FLAGS + const NEGOTIATE_IDENTIFY + const NEGOTIATE_KEY_EXCH + const NEGOTIATE_LMKEY + const NEGOTIATE_MESSAGE + const NEGOTIATE_NTLM + const NEGOTIATE_OEM + const NEGOTIATE_OEM_DOMAIN_SUPPLIED + const NEGOTIATE_OEM_WORKSTATION_SUPPLIED + const NEGOTIATE_SEAL + const NEGOTIATE_SIGN + const NEGOTIATE_TARGET + const NEGOTIATE_TARGET_INFO + const NEGOTIATE_TARGET_TYPE_DOMAIN + const NEGOTIATE_TARGET_TYPE_SERVER + const NEGOTIATE_UNICODE + const NEGOTIATE_VERSION + const NTLMVersion1 + const NTLMVersion2 + const PriorityHigh + const PriorityLow + const REQUEST_NON_NT_SESSION_KEY + const TextCalendar + const TextHTML + const TextPlain + func NTLMAuth(host, user, password string, version ntlm.Version) *ntlmAuth + func NTLMV1Auth(host, user, password, workstation string) *ntlmv1Auth + func SendMessage(from string, recipients []string, msg string, client *SMTPClient) error + type AuthType int + const AuthCRAMMD5 + const AuthLogin + const AuthNTLM + const AuthNone + const AuthPlain + 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) AddAlternativeData(contentType contentType, body []byte) *Email + func (email *Email) AddAttachment(file string, name ...string) *Email + func (email *Email) AddAttachmentBase64(b64File, name string) *Email + func (email *Email) AddAttachmentData(data []byte, filename, mimeType 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(file string, name ...string) *Email + func (email *Email) AddInlineBase64(b64File, name, mimeType string) *Email + func (email *Email) AddInlineData(data []byte, filename, mimeType string) *Email + func (email *Email) AddTo(addresses ...string) *Email + func (email *Email) Attach(file *File) *Email + func (email *Email) GetError() error + func (email *Email) GetFrom() string + func (email *Email) GetMessage() string + func (email *Email) GetRecipients() []string + func (email *Email) Send(client *SMTPClient) error + func (email *Email) SendEnvelopeFrom(from string, client *SMTPClient) error + func (email *Email) SetBody(contentType contentType, body string) *Email + func (email *Email) SetBodyData(contentType contentType, body []byte) *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 Encryption int + const EncryptionNone + const EncryptionSSL + const EncryptionSSLTLS + const EncryptionSTARTTLS + const EncryptionTLS + func (encryption Encryption) String() string + type File struct + B64Data string + Data []byte + FilePath string + Inline bool + MimeType string + Name string + type NTLMSSP struct + Domain string + Password string + UserName string + Workstation string + func (auth *NTLMSSP) Free() + func (auth *NTLMSSP) InitialBytes() ([]byte, error) + func (auth *NTLMSSP) NextBytes(bytes []byte) ([]byte, error) + 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 + Helo string + 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) + func (server *SMTPServer) GetEncryptionType() Encryption Other modules containing this package github.com/jayturchi/go-simple-mail