Documentation
¶
Index ¶
- Constants
- func LoginAuth(user, pass, host string) smtp.Auth
- func NewEmailDest(address string) gadb.DestV1
- func SendMail(ctx context.Context, addr string, a NegotiateAuth, from string, to []string, ...) error
- func SendMailTLS(ctx context.Context, addr string, a NegotiateAuth, from string, to []string, ...) error
- type NegotiateAuth
- type Sender
- func (s *Sender) DisplayInfo(ctx context.Context, args map[string]string) (*nfydest.DisplayInfo, error)
- func (s *Sender) ID() string
- func (s *Sender) SendMessage(ctx context.Context, msg notification.Message) (*notification.SentMessage, error)
- func (s *Sender) TypeInfo(ctx context.Context) (*nfydest.TypeInfo, error)
- func (s *Sender) ValidateField(ctx context.Context, fieldID, value string) error
Constants ¶
View Source
const ( DestTypeEmail = "builtin-smtp-email" FieldEmailAddress = "email_address" FallbackIconURL = "builtin://email" )
Variables ¶
This section is empty.
Functions ¶
func LoginAuth ¶
LoginAuth implements the LOGIN authentication mechanism.
Adapted from smtp.PlainAuth in the standard library.
func NewEmailDest ¶ added in v0.33.0
Types ¶
type NegotiateAuth ¶
NegotiateAuth should return the appropriate smtp.Auth for the given server auth string.
type Sender ¶
type Sender struct{}
func (*Sender) DisplayInfo ¶ added in v0.33.0
func (*Sender) SendMessage ¶ added in v0.33.0
func (s *Sender) SendMessage(ctx context.Context, msg notification.Message) (*notification.SentMessage, error)
Send will send an for the provided message type.
Click to show internal directories.
Click to hide internal directories.