mail

package
v0.1.1 Latest Latest
Warning

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

Go to latest
Published: Jan 23, 2024 License: MIT Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GetSubject

func GetSubject(form *form_service.Form, req *http.Request) string

func HandleForm

func HandleForm(form *form_service.Form, req *http.Request, account *mail.SMTPServer) error

func ParseForm

func ParseForm(form *form_service.Form, req *http.Request) ([]*form_service.StringField, []*mail.File, error)

Types

type MailAccount

type MailAccount struct {
	Host       string `validate:"required,fqdn|hostname|ip"`
	Port       int    `validate:"required"`
	Username   string `validate:"required"`
	Password   string `validate:"required"`
	Encryption string `validate:"oneof=ssl starttls none"`
}

func (MailAccount) Init

func (a MailAccount) Init() (*mail.SMTPServer, error)

Jump to

Keyboard shortcuts

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