smtp

package
v0.9.2 Latest Latest
Warning

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

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

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Provider

func Provider(ctx context.Context, cfg *viper.Viper) (providers.Emailer, error)

Provider is an SMTP email provider(email.password, email.host, email.port)

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