Go API Documentation

github.com/semaphoreui/semaphore/util/mailer

No package summary is available.

Package

Files: 2. Third party imports: 0. Imports from organisation: 0. Tests: 0. Benchmarks: 0.

Constants

Vars

Types

plainOrLoginAuth

This type doesn't have documentation.

Field name Field type Comment
username

string

No comment on field.
password

string

No comment on field.
host

string

No comment on field.
authMethod

string

No comment on field.

Functions

func PlainOrLoginAuth

func Send

Send simply sends the defined mail via SMTP.

Uses: bytes.NewBufferString, template.New, time.RFC1123, tz.Now.

func (*plainOrLoginAuth) Next

Uses: bytes.Equal, errors.New, fmt.Errorf.

func (*plainOrLoginAuth) Start

Uses: errors.New, slices.Contains.

Private functions

func anonymous

References: net.JoinHostPort, smtp.Dial.

func isLocalhost

func parseTlsVersion

References: fmt.Errorf, tls.VersionTLS10, tls.VersionTLS11, tls.VersionTLS12, tls.VersionTLS13.

func plainauth

References: net.JoinHostPort, smtp.SendMail.

func sendTls

References: net.JoinHostPort, smtp.NewClient, tls.Config, tls.Dial, util.Config.