Documentation
¶
Index ¶
- Constants
- func CheckFormat(email string) error
- type CosSender
- type Options
- type Recipient
- type Sender
- func (s *Sender) Address() string
- func (s *Sender) ErasePassword()
- func (s *Sender) IsHostEmpty() bool
- func (s *Sender) IsPortEmpty() bool
- func (s *Sender) RequirePasswordChange() bool
- func (s *Sender) ResetAccessVerification()
- func (s *Sender) SetOk()
- func (s *Sender) SetUpdating()
- func (s *Sender) UserAuth() smtp.Auth
- type Trial
Constants ¶
View Source
const ( SenderCollection = "emailSenders" RecipientCollection = "emailRecipients" )
Variables ¶
This section is empty.
Functions ¶
func CheckFormat ¶
Types ¶
type CosSender ¶
type CosSender struct {
Host string `json:"host,omitempty" bson:"host" yaml:"host,omitempty"`
Port string `json:"port,omitempty" bson:"port" yaml:"port,omitempty"`
Username string `json:"username,omitempty" bson:"username" yaml:"username,omitempty"`
Password string `json:"password,omitzero" bson:"password" yaml:"password,omitempty"`
From string `json:"from,omitempty" bson:"from" yaml:"from,omitempty"`
}
func (*CosSender) ToApiSchema ¶
type Options ¶
type Recipient ¶
type Recipient struct {
Address string `json:"address" bson:"address"`
Note string `json:"note" bson:"note"`
Enabled bool `json:"enabled,omitempty" bson:"enabled"`
Status status.Settings `json:"status" bson:"status" yaml:"-"`
}
func (*Recipient) SetUpdating ¶
func (r *Recipient) SetUpdating()
type Sender ¶
type Sender struct {
Host string `json:"host,omitempty" bson:"host" yaml:"host,omitempty"`
Port int `json:"port,omitempty" bson:"port" yaml:"port,omitempty"`
Username string `json:"username,omitempty" bson:"username" yaml:"username,omitempty"`
Password *string `json:"password,omitzero" bson:"password" yaml:"password,omitempty"`
From string `json:"from,omitempty" bson:"from" yaml:"from,omitempty"`
AccessVerified bool `json:"accessVerified" bson:"accessVerified" yaml:"-"`
Status *status.Settings `json:"status,omitempty" bson:"status" yaml:"-"`
}
func (*Sender) ErasePassword ¶
func (s *Sender) ErasePassword()
func (*Sender) IsHostEmpty ¶
func (*Sender) IsPortEmpty ¶
func (*Sender) RequirePasswordChange ¶
func (*Sender) ResetAccessVerification ¶
func (s *Sender) ResetAccessVerification()
func (*Sender) SetUpdating ¶
func (s *Sender) SetUpdating()
Click to show internal directories.
Click to hide internal directories.