mail

package
v0.0.0-...-14ba594 Latest Latest
Warning

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

Go to latest
Published: May 8, 2020 License: GPL-3.0 Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Mailer

type Mailer struct {
	Addr    string
	Pass    string
	Subject string
	// contains filtered or unexported fields
}

Mailer sends email using gmail mail server.

func New

func New(addr string, pass string, subject string) (Mailer, error)

New creates a new mailer

func (Mailer) SendMail

func (mailer Mailer) SendMail(t domjudge.Team, a domjudge.Account) error

SendMail sends mail into given mail address with template that is defined in mail.tmpl. This mail contains team and account information and sends per member.

Jump to

Keyboard shortcuts

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