You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 

35 lines
644 B

package mail
import "mime/multipart"
// Type for mail
type Type uint8
// Mail types
const (
TypeTextPlain Type = iota
TypeTextHTML
)
// Attach def.
type Attach struct {
Name string
File multipart.File
ShouldUnzip bool
}
// Mail def.
type Mail struct {
ToAddresses []*Address `json:"to_addresses"`
CcAddresses []*Address `json:"cc_addresses"`
BccAddresses []*Address `json:"bcc_addresses"`
Subject string `json:"subject"`
Body string `json:"body"`
Type Type `json:"type"`
}
// Address def.
type Address struct {
Address string `json:"address"`
Name string `json:"name"`
}