Versions in this module Expand all Collapse all v0 v0.1.37 Sep 15, 2026 Changes in this version + type Attachment struct + Content []byte + ContentType string + Filename string + type Auth string + const AuthNone + const AuthOAuth2 + const AuthPlain + type Encryption string + const EncryptionAuto + const EncryptionExplicitTLS + const EncryptionImplicitTLS + const EncryptionNone + type Mail struct + func New(to []string, subject, body, contentType string) *Mail + func (m *Mail) AddAttachment(attachment Attachment) *Mail + func (m *Mail) Send(conn SMTPConnection) error + func (m *Mail) SetCredentials(host string, port int, user, password string) *Mail + func (m *Mail) SetFrom(name, email string) *Mail + func (m *Mail) SetHeader(key, value string) *Mail + type SMTPConnection struct + Auth Auth + Encryption Encryption + FromAddress string + FromName string + Host string + InsecureTLS bool + Password types.EnvVar + Port int + To []string + Username types.EnvVar + func FromConnection(conn *models.Connection) (SMTPConnection, error) + func FromURL(raw string) (SMTPConnection, error)