email

package
v0.0.0-...-73eed44 Latest Latest
Warning

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

Go to latest
Published: Oct 22, 2023 License: MIT Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ValidateEmail

func ValidateEmail(email string) (bool, error)

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