Documentation ¶
Index ¶
Constants ¶
View Source
const ( SendEmailComponent = "send_email" PortResponse = "response" PortError = "error" PortRequest = "request" )
Variables ¶
View Source
var SenderDefaultSettings = SenderSettings{}
Functions ¶
This section is empty.
Types ¶
type SendEmail ¶
type SendEmail struct { Context SendEmailContext `json:"context" configurable:"true" title:"Context"` SmtpSettings SmtpServerSettings `json:"smtpSettings" required:"true" title:"SMTP Settings"` ContentType string `json:"contentType" required:"true" title:"Content type" enum:"text/plain,text/html,application/octet-stream"` From string `json:"from" title:"From"` To []Recipient `json:"to,omitempty" required:"true" description:"List of recipients" title:"To" uniqueItems:"true" minItems:"1"` Subject string `json:"subject" title:"Subject"` Body string `json:"body" title:"Email body" format:"textarea"` }
type SendEmailContext ¶
type SendEmailContext any
type SendMessageError ¶
type SendMessageSuccess ¶
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.Port
type SmtpServerSettings ¶
type SmtpServerSettings struct { Host string `json:"host" required:"true" minLength:"1" title:"SMTP Host"` Port int `json:"port" required:"true" title:"SMTP Port"` Username string `json:"username" title:"SMTP username" required:"true"` Password string `json:"password" title:"SMTP password" required:"true"` Test bool `json:"test" format:"button" title:"Test connection" required:"true"` }
Click to show internal directories.
Click to hide internal directories.