Documentation ¶
Index ¶
Constants ¶
View Source
const ( SendEmailComponent = "send_email" PortSuccess = "success" PortSettings = "settings" PortError = "error" PortIn = "in" )
Variables ¶
View Source
var SenderDefaultSettings = SenderSettings{}
Functions ¶
This section is empty.
Types ¶
type EmailConfig ¶ added in v0.1.5
type EmailConfig struct { ContentType string `` /* 126-byte string literal not displayed */ From string `json:"from" title:"From" propertyOrder:"3"` To []Recipient `` /* 129-byte string literal not displayed */ Body string `json:"body" title:"Email body" format:"textarea" propertyOrder:"5"` Subject string `json:"subject" title:"Subject" propertyOrder:"6"` SmtpSettings SmtpServerSettings `json:"smtpSettings" required:"true" title:"SMTP Settings" propertyOrder:"7"` }
type SendEmail ¶
type SendEmail struct { Context SendEmailContext `json:"context" configurable:"true" title:"Context" propertyOrder:"1"` Email EmailConfig `json:"email" required:"true" title:"Email"` }
type SendEmailContext ¶
type SendEmailContext any
type SendMessageError ¶
type SendMessageError struct { Context SendEmailContext `json:"context"` Error string `json:"error"` Email EmailConfig `json:"sent"` MessageID string `json:"messageID"` }
type SendMessageSuccess ¶
type SendMessageSuccess struct { Context SendEmailContext `json:"context"` MessageID string `json:"messageID"` Email EmailConfig `json:"sent"` }
type SenderSettings ¶
type SmtpSender ¶
type SmtpSender struct {
// contains filtered or unexported fields
}
func (*SmtpSender) GetInfo ¶
func (t *SmtpSender) GetInfo() module.ComponentInfo
func (*SmtpSender) Instance ¶
func (t *SmtpSender) Instance() module.Component
func (*SmtpSender) Ports ¶
func (t *SmtpSender) Ports() []module.NodePort
type SmtpServerSettings ¶
type SmtpServerSettings struct { Host string `json:"host" required:"true" minLength:"1" title:"SMTP Host" propertyOrder:"1"` Port int `json:"port" required:"true" title:"SMTP Port" propertyOrder:"2"` Username string `json:"username" title:"SMTP username" required:"true" propertyOrder:"3"` Password string `json:"password" title:"SMTP password" required:"true" propertyOrder:"4"` Test bool `json:"test" format:"button" title:"Test connection" required:"true" propertyOrder:"5"` }
Click to show internal directories.
Click to hide internal directories.