email

package
v1.9.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Oct 24, 2022 License: Apache-2.0 Imports: 9 Imported by: 0

Documentation

Overview

Package email is the email notification package

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type NotifyConfig

type NotifyConfig struct {
	base.DefaultNotify `yaml:",inline"`
	Server             string `` /* 150-byte string literal not displayed */
	User               string `` /* 128-byte string literal not displayed */
	Pass               string `yaml:"password" json:"password" jsonschema:"required,title=SMTP Password,description=SMTP password,example=\"password\""`
	To                 string `` /* 132-byte string literal not displayed */
	From               string `` /* 127-byte string literal not displayed */
}

NotifyConfig is the email notification configuration

func (*NotifyConfig) Config

func (c *NotifyConfig) Config(gConf global.NotifySettings) error

Config configures the log files

func (*NotifyConfig) SendMail

func (c *NotifyConfig) SendMail(subject string, message string) error

SendMail sends the email

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL