Documentation
¶
Index ¶
- func InitEmailConfig(server string, port int, from, name, password string)
- func LoadKeyStore(keyfile, passfile string) (*keystore.Key, error)
- func SafeReadFile(file string) ([]byte, error)
- func SendEmail(to, cc []string, subject, content string) error
- func SendEmailWithAttach(to, cc []string, subject, content string, attachFiles []string) error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func InitEmailConfig ¶
InitEmailConfig init email config
func LoadKeyStore ¶
LoadKeyStore load keystore from keyfile and passfile
func SafeReadFile ¶ added in v0.3.8
SafeReadFile check permissions is '0400' and read file
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.