Versions in this module Expand all Collapse all v0 v0.0.4 Mar 7, 2024 Changes in this version + const Version + func MIMEBase64To(w io.Writer, r io.Reader) (err error) + func MIMEHeaderTo(w io.Writer, header textproto.MIMEHeader) (err error) + func PreviewMessage(m *loaders.Message) + func RegisterCompressor(contentType string, resizer Compressor) + func Send(message *loaders.Message, o *Options) error + type Attachment struct + Hash uint64 + Name string + Source string + func NewAttachment(p string) (*Attachment, error) + func (a *Attachment) WriteTo(w io.Writer) (int64, error) + type Compressor func(io.Reader) (*bytes.Buffer, error) + func NewImageJPEGResizer(maxWidth, maxHeight, quality uint) Compressor + type MIMELineWrapper struct + func (w *MIMELineWrapper) Write(p []byte) (int, error) + type Mailer struct + type Message interface + BCC func() []string + CC func() []string + MIMEBody func() io.ReadCloser + Subject func() string + To func() []string + type Option func(m *Mailer) error + func WithOptions(options ...Option) Option + type Options struct + Distributor distributors.Distributor + Dryrun bool + Loader loaders.Loader + Logger loggers.Logger + Provider providers.Provider + Renderer renderers.Renderer + URI string + Verbose bool + YesOnPrompt bool