1
0
mirror of https://github.com/pocketbase/pocketbase.git synced 2024-11-25 01:16:21 +02:00
pocketbase/tools/mailer/mailer.go

19 lines
326 B
Go
Raw Normal View History

2022-07-06 23:19:05 +02: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,
htmlBody string,
attachments map[string]io.Reader,
) error
}