Documentation ¶
Index ¶
Constants ¶
View Source
const (
//ServiceID represents smtp service id.
ServiceID = "smtp"
)
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Message ¶
type Message struct { From string `required:"true" description:"sender, has to match email from target.credentials"` To []string Cc []string Bcc []string Subject string Body string ContentType string }
Message represent an email
type SendRequest ¶
type SendRequest struct { Target *location.Resource `required:"true" description:"SMTP endpoint"` Mail *Message `required:"true"` UDF string `description:"body UDF"` }
SendRequest represents send request.
func (*SendRequest) Validate ¶
func (r *SendRequest) Validate() error
Validate validates send request.
type SendResponse ¶
type SendResponse struct {
SendPayloadSize int
}
SendResponse represents send response.
Click to show internal directories.
Click to hide internal directories.