smtp

package
v0.11.2 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Dec 3, 2023 License: Apache-2.0 Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func New added in v0.11.0

func New(password string, host string, port int) (providers.Emailer, error)

New returns a new smtp email provider

Types

type SmtpProvider

type SmtpProvider struct {
	// contains filtered or unexported fields
}

SmtpProvider is a struct for sending emails

func (*SmtpProvider) SendEmail

func (s *SmtpProvider) SendEmail(ctx context.Context, email *providers.Email) error

SendEmail sends an email to multiple recipients

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL