feat: add FileAttachment type and functions for creating attachments from file content and file path
All checks were successful
🚀 Publish Release Package / publish (push) Successful in 20s

This commit is contained in:
2025-06-25 13:22:10 -04:00
parent bdc73d149d
commit 26f309937b
2 changed files with 44 additions and 5 deletions

View File

@@ -24,12 +24,18 @@ type Destination struct {
BccAddresses Addresses `json:"BccAddresses,omitempty"`
}
type FileAttachment struct {
Filename string `json:"Filename"`
Content string `json:"Content"`
}
type EmailRequest struct {
Source string `json:"Source"`
Destination Destination `json:"Destination"`
Message Message `json:"Message"`
ScheduledTime time.Time `json:"ScheduledTime,omitempty"`
Catch bool `json:"Catch,omitempty"`
Attachments []FileAttachment `json:"Attachments,omitempty"`
Source string `json:"Source"`
Destination Destination `json:"Destination"`
Message Message `json:"Message"`
ScheduledTime time.Time `json:"ScheduledTime,omitempty"`
Catch bool `json:"Catch,omitempty"`
}
type Email struct {