email

package
v0.1.1 Latest Latest
Warning

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

Go to latest
Published: Apr 12, 2024 License: MIT Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type EmailSender

type EmailSender struct {
	SmtpHost string
	Password string
}

func NewEmailSender

func NewEmailSender(smtpHost string, password string) *EmailSender

func (EmailSender) Send

func (es EmailSender) Send(subject string, content string, from string, to string) error

func (EmailSender) SendBulk

func (es EmailSender) SendBulk(subject string, content string, from string, to []string) error

type IEmailSender

type IEmailSender interface {
	Send(subject string, content string, from string, to string) error
	SendBulk(subject string, content string, from string, to []string) error
}

Jump to

Keyboard shortcuts

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