Documentation
¶
Index ¶
- func Address(name, email string) *address
- func Addresses[S sender](addresses ...S) addressSlice
- func Attachment(options ...attachmentOption) attachment
- func Register[T Mailer](templates embed.FS, service T) T
- func Send[S sender](context context.Context, email S, opts ...option) error
- func WithContent(content []byte) attachmentOption
- func WithMailable(mailable Mailablee) option
- func WithMime(mime string) attachmentOption
- func WithName(name string) attachmentOption
- type AttachmentSlice
- type Content
- type Envelope
- type Mailable
- type Mailablee
- type Mailer
- type Options
- type With
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func Attachment ¶
func Attachment(options ...attachmentOption) attachment
func WithContent ¶
func WithContent(content []byte) attachmentOption
func WithMailable ¶
func WithMailable(mailable Mailablee) option
Types ¶
type AttachmentSlice ¶
type AttachmentSlice []attachment
func Attachments ¶
func Attachments(attachments ...attachment) AttachmentSlice
type Envelope ¶
type Envelope struct {
From *address
To addressSlice
Cc addressSlice
Bcc addressSlice
ReplyTo *address
Subject string
}
type Mailablee ¶
type Mailablee interface {
Envelope() Envelope
Content() Content
Attachments() AttachmentSlice
}
Click to show internal directories.
Click to hide internal directories.