Versions in this module Expand all Collapse all v0 v0.2.0 Oct 7, 2026 v0.1.0 Oct 7, 2026 Changes in this version + const Archive + const Inbox + const Trash + var ErrNotFound = errors.New("mailer: no such message") + func Delete(ctx context.Context, id string) error + func Move(ctx context.Context, id, folder string) error + func Send(ctx context.Context, msg Message) (string, error) + type Address struct + Address string + Name string + type Attachment struct + ContentType string + Data []byte + Filename string + type Header struct + Name string + Value string + type Mail struct + Attachments []Attachment + Cc []Address + HTML string + Headers []Header + ReplyTo *Address + Text string + func Get(ctx context.Context, id string) (*Mail, error) + type Message struct + Attachments []Attachment + Bcc []Address + Cc []Address + FromName string + HTML string + Headers []Header + IdempotencyKey string + ReplyTo *Address + Subject string + Text string + To []Address + type Summary struct + Date time.Time + Folder string + From Address + ID string + Size int64 + Subject string + To []Address + func List(ctx context.Context, folder string, offset, limit int) ([]Summary, int, error)