Documentation ¶
Index ¶
- Variables
- type Address
- type AttachmentInfo
- type AttachmentList
- type AttachmentListItem
- type Message
- type SMTP
- func (s *SMTP) SetTLS(tlsc *tls.Config)
- func (s *SMTP) SubmitHTML(fromEmail, fromName, toEmail, toName, subject, htmlBody string, ...) (int, error)
- func (s *SMTP) SubmitMessage(msg *Message) error
- func (s *SMTP) SubmitMixed(fromEmail, fromName, toEmail, toName, subject, plainBody string, ...) (int, error)
- func (s *SMTP) SubmitPlaintext(fromEmail, fromName, toEmail, toName, subject, plainBody string, ...) (int, error)
Constants ¶
This section is empty.
Variables ¶
View Source
var (
Verbose = false
)
Functions ¶
This section is empty.
Types ¶
type Address ¶
func NewAddress ¶
type AttachmentInfo ¶
type AttachmentInfo struct { File io.ReadCloser Name string MimeType string Path string // optional path in disk }
type AttachmentList ¶
type AttachmentList struct {
// contains filtered or unexported fields
}
func NewAttachmentList ¶
func NewAttachmentList() *AttachmentList
func (*AttachmentList) Add ¶
func (l *AttachmentList) Add(item *AttachmentInfo)
func (*AttachmentList) Count ¶
func (l *AttachmentList) Count() int
func (*AttachmentList) First ¶
func (l *AttachmentList) First() *AttachmentListItem
func (*AttachmentList) GetFilenames ¶
func (l *AttachmentList) GetFilenames() []string
func (*AttachmentList) Last ¶
func (l *AttachmentList) Last() *AttachmentListItem
func (*AttachmentList) PurgeFiles ¶
func (l *AttachmentList) PurgeFiles()
type AttachmentListItem ¶
type AttachmentListItem struct { Value *AttachmentInfo // contains filtered or unexported fields }
func (*AttachmentListItem) Next ¶
func (q *AttachmentListItem) Next() *AttachmentListItem
type Message ¶
type Message struct { From Address To []Address Subject string HTMLBody string PlaintextBody string Files *AttachmentList RawHeaders map[string]string }
func NewMessage ¶
func NewMessage() *Message
func (*Message) AddRecipient ¶
type SMTP ¶
func (*SMTP) SubmitHTML ¶
func (s *SMTP) SubmitHTML(fromEmail, fromName, toEmail, toName, subject, htmlBody string, files *AttachmentList) (int, error)
func (*SMTP) SubmitMessage ¶
func (*SMTP) SubmitMixed ¶
func (*SMTP) SubmitPlaintext ¶
func (s *SMTP) SubmitPlaintext(fromEmail, fromName, toEmail, toName, subject, plainBody string, files *AttachmentList) (int, error)
Click to show internal directories.
Click to hide internal directories.