wireguard-ui/emailer/interface.go
Justin van der Krieken 9cb4c26ac5 Specify mimetype for email attachments
This fixes that some email client might not allow previewing the qrcode image.
2024-03-04 20:34:10 +01:00

11 lines
211 B
Go

package emailer
type Attachment struct {
Name string
Data []byte
MimeType string
}
type Emailer interface {
Send(toName string, to string, subject string, content string, attachments []Attachment) error
}