Documentation
¶
Overview ¶
Package mail sends Inkless's own emails (signing codes only).
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Log ¶
Log is the development mailer: it logs a masked recipient and the six-digit code found in the message, and sends nothing. Never use it in production, since codes appear in logs.
type Message ¶
type Message struct {
// To is the recipient address.
To string
// Subject is the unencoded subject line.
Subject string
// Text is the UTF-8 body.
Text string
}
Message is one plain-text email.
type SMTP ¶
type SMTP struct {
// AllowPlaintext permits relays without TLS, such as a development mail
// catcher on another host. Development mode only.
AllowPlaintext bool
// contains filtered or unexported fields
}
SMTP sends mail through one relay. Plain smtp:// requires STARTTLS and smtps:// uses implicit TLS. Only a loopback relay, or any relay when AllowPlaintext is set, may be used without TLS. Credentials are never sent without TLS.