notify: gomodules.xyz/notify/smtp Index | Files

package smtp

import "gomodules.xyz/notify/smtp"

Index

Package Files

mail.go

Constants

const UID = "smtp"

func Default Uses

func Default() (*client, error)

func Load Uses

func Load(loader envconfig.LoaderFunc) (*client, error)

func New Uses

func New(opt Options) *client

type Options Uses

type Options struct {
    Host               string   `json:"host" envconfig:"HOST" required:"true" form:"smtp_host"`
    Port               int      `json:"port" envconfig:"PORT" required:"true" form:"smtp_port"`
    InsecureSkipVerify bool     `json:"insecure_skip_verify" envconfig:"INSECURE_SKIP_VERIFY" form:"smtp_insecure_skip_verify"`
    Username           string   `json:"username" envconfig:"USERNAME" required:"true" form:"smtp_username"`
    Password           string   `json:"password" envconfig:"PASSWORD" required:"true" form:"smtp_password"`
    From               string   `json:"from" envconfig:"FROM" required:"true" form:"smtp_from"`
    To                 []string `json:"to" envconfig:"TO" form:"smtp_to"`
}

Package smtp imports 5 packages (graph) and is imported by 2 packages. Updated 2019-03-08. Refresh now. Tools for package owners.