mailsender

package
v0.0.0-...-ba64992 Latest Latest
Warning

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

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

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type MailSender

type MailSender interface {
	health.Provider
	SendMail(params *SendMailParams) error
}

func New

func New(server string, mailFrom string, username string, password string) (MailSender, error)

type SendMailError

type SendMailError struct {
	Cause error
	Code  int
	Msg   string
	// contains filtered or unexported fields
}

func (*SendMailError) Error

func (s *SendMailError) Error() string

type SendMailParams

type SendMailParams struct {
	To      []mail.Address
	Cc      []mail.Address
	Bcc     []mail.Address
	Subject string
	Text    string
	Html    string
}

Jump to

Keyboard shortcuts

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