Documentation
¶
Overview ¶
Package email provides email notification drivers.
Index ¶
- type FileDriver
- func (d *FileDriver) Channel() string
- func (d *FileDriver) Fields() []driver.Field
- func (d *FileDriver) Name() string
- func (d *FileDriver) Send(ctx context.Context, msg *driver.OutboundMessage) (*driver.DeliveryResult, error)
- func (d *FileDriver) Validate(credentials, settings map[string]string) error
- type ResendDriver
- func (d *ResendDriver) Channel() string
- func (d *ResendDriver) Fields() []driver.Field
- func (d *ResendDriver) Name() string
- func (d *ResendDriver) Send(ctx context.Context, msg *driver.OutboundMessage) (*driver.DeliveryResult, error)
- func (d *ResendDriver) Validate(credentials, _ map[string]string) error
- type SMTPDriver
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type FileDriver ¶ added in v1.10.0
type FileDriver struct{}
FileDriver writes each email to a directory as an .eml file instead of sending it, for local development. Any mail client opens the files. They hold whole messages, sign-in links included, so the directory and files are readable by their owner only.
func (*FileDriver) Channel ¶ added in v1.10.0
func (d *FileDriver) Channel() string
func (*FileDriver) Fields ¶ added in v1.10.0
func (d *FileDriver) Fields() []driver.Field
Fields describes what the file driver reads.
func (*FileDriver) Name ¶ added in v1.10.0
func (d *FileDriver) Name() string
func (*FileDriver) Send ¶ added in v1.10.0
func (d *FileDriver) Send(ctx context.Context, msg *driver.OutboundMessage) (*driver.DeliveryResult, error)
type ResendDriver ¶
type ResendDriver struct{}
ResendDriver delivers email via the Resend HTTP API.
func (*ResendDriver) Channel ¶
func (d *ResendDriver) Channel() string
func (*ResendDriver) Fields ¶
func (d *ResendDriver) Fields() []driver.Field
Fields describes what the Resend driver reads.
func (*ResendDriver) Name ¶
func (d *ResendDriver) Name() string
func (*ResendDriver) Send ¶
func (d *ResendDriver) Send(ctx context.Context, msg *driver.OutboundMessage) (*driver.DeliveryResult, error)
type SMTPDriver ¶
type SMTPDriver struct{}
SMTPDriver delivers email via standard SMTP.
func (*SMTPDriver) Channel ¶
func (d *SMTPDriver) Channel() string
func (*SMTPDriver) Fields ¶
func (d *SMTPDriver) Fields() []driver.Field
Fields describes what the SMTP driver reads.
func (*SMTPDriver) Name ¶
func (d *SMTPDriver) Name() string
func (*SMTPDriver) Send ¶
func (d *SMTPDriver) Send(ctx context.Context, msg *driver.OutboundMessage) (*driver.DeliveryResult, error)
Click to show internal directories.
Click to hide internal directories.