Versions in this module Expand all Collapse all v0 v0.14.2 Nov 30, 2024 v0.14.1 Oct 27, 2023 v0.14.0 Sep 20, 2023 v0.13.2 Sep 15, 2023 v0.13.1 Sep 14, 2023 v0.13.0 Sep 14, 2023 Changes in this version + func New(msg models.Message, atts ...models.Attachment) models.Envelope v0.12.1 Jul 25, 2023 v0.12.0 Jul 25, 2023 v0.11.2 Jul 23, 2023 Changes in this version + type CreateMessage struct + Date time.Time + From string + HTML string + Subject string + Text string + To []string v0.11.1 Jul 21, 2023 v0.11.0 Jul 21, 2023 Changes in this version + type Attachment struct + Extension string + ID int64 + MessageID int64 + Mime string + Name string + func (a *Attachment) FileName() string + func (a *Attachment) IsImage() bool + type AttachmentFilter struct + Ascending bool + type AttachmentListResult struct + Attachments []*Attachment + PageResult pagination.PageResult + type DataAttachment struct + Attachment *Attachment + Data []byte + func NewDataAttachment(name string, data []byte) DataAttachment + type Envelope struct + Attachments []*Attachment + Message *Message + type Message struct + CreatedAt time.Time + Date time.Time + From string + HTML string + ID int64 + Subject string + Text string + To []string + func NewMessage(from string, to []string, subject, text, html string, date time.Time) *Message + func (e Message) IsTo(to string) bool + type MessageFilter struct + Ascending bool + Search string + SearchSubject bool + SearchText bool + type MessageListResult struct + Messages []*Message + PageResult pagination.PageResult