Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func SendMailSSL ¶
func SendMailSSL(cfg *MailConfig, subject string, body string) error
SendMailSSL sends a mail message using SMTP servers that require a SSL connection from the very beginning.
Types ¶
type MailConfig ¶
type MailConfig struct { From string `json:"from"` To string `json:"to"` ServerHost string `json:"serverHost"` ServerPort int `json:"serverPort"` ServerUser string `json:"serverUser"` ServerPassword string `json:"serverPassword"` }
MailConfig represents SMTP server details
func LoadMailConfig ¶
func LoadMailConfig(path string) (*MailConfig, error)
LoadMailConfig reads mail configuration from file
type NetConfig ¶
NetConfig holds the hostname and the list of IP addresses for the current host
func GetNetConfig ¶
GetNetConfig reads current network settings
func LoadNetConfig ¶
LoadNetConfig loads network settings from file
Click to show internal directories.
Click to hide internal directories.