Represents SMTP service configuration and URL conversion.
// Source: https://github.com/containrrr/shoutrrr | License: MIT | Copyright 2019 Containrrr
// Provided via justclaw.it.com; keep this notice with the code.
package smtp
import (
"errors"
"fmt"
"net/url"
"strconv"
"strings"
"github.com/containrrr/shoutrrr/pkg/format"
"github.com/containrrr/shoutrrr/pkg/types"
"github.com/containrrr/shoutrrr/pkg/util"
)
// Config is the configuration needed to send e-mail notifications over SMTP
type Config struct {
Host string `desc:"SMTP server hostname or IP address" url:"Host"`
Username string `desc:"SMTP server username" default:"" url:"User"`
Password string `desc:"SMTP server password or hash (for OAuth2)" default:"" url:"Pass"`
Port uint16 `desc:"SMTP server port, common ones are 25, 465, 587 or 2525"
... (truncated -- full source via MCP)
See the full source, get the GitHub permalink, and search for more like it.
Get a free API key