email

package
v2.3.1 Latest Latest
Warning

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

Go to latest
Published: Jan 29, 2026 License: MIT Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type EmailSender

type EmailSender struct {
	SmtpSenderMail  string          `json:"smtp_sender_mail" yaml:"smtp_sender_mail"`
	SmtpSenderAlias string          `json:"smtp_sender_alias" yaml:"smtp_sender_alias"`
	SmtpSenderTo    []string        `json:"smtp_sender_to" yaml:"smtp_sender_to"`
	SmtpSenderAddr  string          `json:"smtp_sender_addr" yaml:"smtp_sender_addr"`
	SmtpSenderPort  int             `json:"smtp_sender_port" yaml:"smtp_sender_port"`
	Account         string          `json:"account" yaml:"account"`
	Password        string          `json:"password" yaml:"password"`
	Proxy           cfg_proxy.Proxy `json:"proxy" yaml:"proxy"`
	TLS             *cfg_tls.TLS    `json:"tls" yaml:"tls"`
}

func (*EmailSender) NewDialer

func (e *EmailSender) NewDialer() (*gomail.Dialer, error)

func (*EmailSender) Send

func (e *EmailSender) Send(subject, body string) error

Jump to

Keyboard shortcuts

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