1
0
mirror of https://github.com/pocketbase/pocketbase.git synced 2025-01-26 15:03:00 +02:00
pocketbase/tools/mailer/mailer.go

19 lines
329 B
Go
Raw Normal View History

2022-07-07 00:19:05 +03:00
package mailer
import (
"io"
"net/mail"
)
// Mailer defines a base mail client interface.
type Mailer interface {
// Send sends an email with HTML body to the specified recipient.
Send(
fromEmail mail.Address,
toEmail mail.Address,
subject string,
htmlContent string,
2022-07-07 00:19:05 +03:00
attachments map[string]io.Reader,
) error
}