Documentation
¶
Index ¶
Constants ¶
View Source
const ( ComponentName = "smtp_send_email" ResponsePort = "response" ErrorPort = "error" RequestPort = "request" )
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Component ¶
type Component struct {
// contains filtered or unexported fields
}
func (*Component) GetInfo ¶
func (t *Component) GetInfo() module.ComponentInfo
type Request ¶
type Request struct {
Context Context `json:"context,omitempty" configurable:"true" title:"Context"`
SmtpSettings SmtpSettings `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" 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 SmtpSettings ¶
type SmtpSettings 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.